Skip to content

Commit

Permalink
generate_phash() -> stash.metadata_generate()
Browse files Browse the repository at this point in the history
  • Loading branch information
stg-annon committed Mar 10, 2024
1 parent e1096f4 commit a3def9a
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions plugins/phashDuplicateTagger/phashDuplicateTagger.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def main():
if MODE == "clean_scenes":
clean_scenes()
if MODE == "generate_phash":
generate_phash()
stash.metadata_generate({"phashes": True})

log.exit("Plugin exited normally.")

Expand Down Expand Up @@ -266,13 +266,6 @@ def get_managed_tags(fragment="id name"):
tags.append(tag)
return tags

def generate_phash():
query = """mutation MetadataGenerate($input: GenerateMetadataInput!) {
metadataGenerate(input: $input)
}"""
variables = {"phashes": True}
stash._callGraphQL(query, variables)

if __name__ == "__main__":
for name, func in getmembers(config, isfunction):
if re.match(r"^compare_", name):
Expand Down

0 comments on commit a3def9a

Please sign in to comment.