From a3def9a1cebab9bee3ed9138a671237c8627b5e9 Mon Sep 17 00:00:00 2001 From: stg-annon <14135675+stg-annon@users.noreply.github.com> Date: Sun, 10 Mar 2024 17:33:51 -0400 Subject: [PATCH] generate_phash() -> stash.metadata_generate() --- plugins/phashDuplicateTagger/phashDuplicateTagger.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/plugins/phashDuplicateTagger/phashDuplicateTagger.py b/plugins/phashDuplicateTagger/phashDuplicateTagger.py index 9138069..c9fb860 100644 --- a/plugins/phashDuplicateTagger/phashDuplicateTagger.py +++ b/plugins/phashDuplicateTagger/phashDuplicateTagger.py @@ -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.") @@ -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):