From 63163c22fa171a8963d20a51584403bac0482ba7 Mon Sep 17 00:00:00 2001 From: leadwolfx <93480434+leadwolfx@users.noreply.github.com> Date: Mon, 22 Apr 2024 23:53:36 +0200 Subject: [PATCH 1/2] [PDT] fix compare_encoding return value return the better object --- plugins/phashDuplicateTagger/config_example.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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})", ) From 301c491c363f6f1c018f498a90760413d22f2f59 Mon Sep 17 00:00:00 2001 From: leadwolfx <93480434+leadwolfx@users.noreply.github.com> Date: Mon, 22 Apr 2024 23:55:50 +0200 Subject: [PATCH 2/2] [PDT] bump version --- plugins/phashDuplicateTagger/phashDuplicateTagger.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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