Add phash generation and dupe checking (#1158)

This commit is contained in:
InfiniteTF
2021-04-12 01:04:40 +02:00
committed by GitHub
parent a2582047ca
commit c38660d209
70 changed files with 4342 additions and 214 deletions

View File

@@ -27,6 +27,10 @@ func ToBasicJSON(reader models.SceneReader, scene *models.Scene) (*jsonschema.Sc
newSceneJSON.OSHash = scene.OSHash.String
}
if scene.Phash.Valid {
newSceneJSON.Phash = utils.PhashToString(scene.Phash.Int64)
}
if scene.Title.Valid {
newSceneJSON.Title = scene.Title.String
}