From acf1ae41406f3dfeab3a319fd5838d177de4cd34 Mon Sep 17 00:00:00 2001 From: stg-annon <14135675+stg-annon@users.noreply.github.com> Date: Wed, 14 Feb 2024 15:20:11 -0500 Subject: [PATCH] formatting + comment how to enable path compare --- plugins/phashDuplicateTagger/config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/phashDuplicateTagger/config.py b/plugins/phashDuplicateTagger/config.py index a517c74..0d2dc78 100644 --- a/plugins/phashDuplicateTagger/config.py +++ b/plugins/phashDuplicateTagger/config.py @@ -2,8 +2,6 @@ from pathlib import Path import stashapi.log as log from stashapi.tools import human_bytes, human_bits -# Path priority is from highest to lowest and works off the root of the path -PATH_PRIORITY = ['/root/most/important/path','/root/least/important/path'] PRIORITY = ["bitrate_per_pixel", "resolution", "bitrate", "encoding", "size", "age"] CODEC_PRIORITY = { "AV1": 0, @@ -17,6 +15,8 @@ CODEC_PRIORITY = { "VC1": 6, "SVQ3": 7, } +# Path priority is from highest to lowest and works off the root of the path, to enable add "path" to the PRIORITY list +PATH_PRIORITY = ["/root/most/important/path","/root/least/important/path"] KEEP_TAG_NAME = "[PDT: Keep]" REMOVE_TAG_NAME = "[PDT: Remove]" @@ -151,7 +151,7 @@ def compare_encoding(self, other): def compare_path(self, other): - if PATH_PRIORITY[0] == '/root/most/important/path': + if PATH_PRIORITY[0] == "/root/most/important/path": return if not self.path or not other.path: return