From f3ee199ee97dd2163d80065bc00b2dcdf14a2797 Mon Sep 17 00:00:00 2001 From: leadwolfx <93480434+leadwolfx@users.noreply.github.com> Date: Sun, 2 Jun 2024 16:14:50 +0200 Subject: [PATCH] [pHashDuplicateTagger] fix compare_encoding return value (#294) * [PDT] fix compare_encoding return value return the better object * [PDT] bump version --- plugins/phashDuplicateTagger/config_example.py | 2 +- plugins/phashDuplicateTagger/phashDuplicateTagger.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/phashDuplicateTagger/config_example.py b/plugins/phashDuplicateTagger/config_example.py index b22af74f..945a8742 100644 --- a/plugins/phashDuplicateTagger/config_example.py +++ b/plugins/phashDuplicateTagger/config_example.py @@ -145,7 +145,7 @@ def compare_encoding(self, other): worse, better = self, other worse.remove_reason = "video_codec" return ( - self, + better, f"Prefer Codec {better.codec}({better.id}) over {worse.codec}({worse.id})", ) diff --git a/plugins/phashDuplicateTagger/phashDuplicateTagger.yml b/plugins/phashDuplicateTagger/phashDuplicateTagger.yml index 6f949fd9..cab0744b 100644 --- a/plugins/phashDuplicateTagger/phashDuplicateTagger.yml +++ b/plugins/phashDuplicateTagger/phashDuplicateTagger.yml @@ -1,6 +1,6 @@ name: "PHash Duplicate Tagger" description: Will tag scenes based on duplicate PHashes for easier/safer removal. -version: 0.1.3 +version: 0.1.4 url: https://github.com/stashapp/CommunityScripts/tree/main/plugins/phashDuplicateTagger exec: - python