Fix fingerprint search when scene only has phash match (#1312)

This commit is contained in:
InfiniteTF 2021-04-16 19:15:47 +02:00 committed by GitHub
parent a5e9e7abce
commit e3fa8f7b24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -290,7 +290,8 @@ const TaggerList: React.FC<ITaggerListProps> = ({
(s) =>
s.stash_ids.length === 0 &&
((s.checksum && fingerprints[s.checksum]) ||
(s.oshash && fingerprints[s.oshash]))
(s.oshash && fingerprints[s.oshash]) ||
(s.phash && fingerprints[s.phash]))
).length;
};
@ -320,6 +321,7 @@ const TaggerList: React.FC<ITaggerListProps> = ({
const fingerprintMatch =
fingerprints[scene.checksum ?? ""] ??
fingerprints[scene.oshash ?? ""] ??
fingerprints[scene.phash ?? ""] ??
null;
const isTagged = taggedScenes[scene.id];
const hasStashIDs = scene.stash_ids.length > 0;