mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
Add phash generation and dupe checking (#1158)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user