From 85fedf6dec8a79c20642b43cc0fbec934da3be19 Mon Sep 17 00:00:00 2001 From: Parzival Date: Sat, 19 Oct 2024 22:29:47 +0200 Subject: [PATCH 1/3] (Fix) size string in duplicate --- unit3dup/duplicate.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/unit3dup/duplicate.py b/unit3dup/duplicate.py index 8796c21..f73184b 100644 --- a/unit3dup/duplicate.py +++ b/unit3dup/duplicate.py @@ -200,6 +200,8 @@ def _print_output(self, value: dict, delta_size: int): resolution = value.get("resolution", "[n/a]") info_hash = value.get("info_hash", 0) size = value.get("size", 0) + # Convert to GB + size = round(size / (1024 ** 3), 2) tmdb_id = value.get("tmdb_id", 0) igdb_id = value.get("igdb_id", 0) From a84bbb731d4ed49ea8da53ba013ba66cfee5d101 Mon Sep 17 00:00:00 2001 From: Parzival Date: Sun, 27 Oct 2024 00:52:41 +0200 Subject: [PATCH 2/3] clean --- unit3dup/contents.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unit3dup/contents.py b/unit3dup/contents.py index 23e778c..9d381f3 100644 --- a/unit3dup/contents.py +++ b/unit3dup/contents.py @@ -152,7 +152,7 @@ def screen_size(self): screen_split = self.filename_sanitized.split(" ") for screen in screen_split: if screen in tracker_data.resolution: - print(screen) + # print(screen) return tracker_data.resolution[screen] @property From aef3b671f34a22a5f15b89d26f58f60c987f44f2 Mon Sep 17 00:00:00 2001 From: Parzival Date: Sun, 24 Nov 2024 21:55:58 +0100 Subject: [PATCH 3/3] Add Comment --- unit3dup/duplicate.py | 1 + 1 file changed, 1 insertion(+) diff --git a/unit3dup/duplicate.py b/unit3dup/duplicate.py index f73184b..97d1225 100644 --- a/unit3dup/duplicate.py +++ b/unit3dup/duplicate.py @@ -253,6 +253,7 @@ def _process_tracker_data(self, data_from_the_tracker: dict) -> bool: delta_size = self._calculate_threshold(size=tracker_value["size"]) if delta_size > config.SIZE_TH: + # Not a duplicate continue already = self.compare(