From b9f8f1a296184d9a2087bc33c205f35b1be41910 Mon Sep 17 00:00:00 2001 From: Audionut Date: Sun, 1 Dec 2024 10:32:16 +1000 Subject: [PATCH] Handle lack of video_encode --- src/trackers/COMMON.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/trackers/COMMON.py b/src/trackers/COMMON.py index 8a12ae96..693bca21 100644 --- a/src/trackers/COMMON.py +++ b/src/trackers/COMMON.py @@ -625,8 +625,12 @@ async def filter_dupes(self, dupes, meta): new_dupes = [] has_repack_in_uuid = "repack" in meta.get('uuid', '').lower() - has_encoder_in_name = meta.get("video_encode").lower() - normalized_encoder = self.normalize_filename(has_encoder_in_name) + video_encode = meta.get("video_encode") + if video_encode is not None: + has_encoder_in_name = video_encode.lower() + normalized_encoder = self.normalize_filename(has_encoder_in_name) + else: + normalized_encoder = False has_is_disc = bool(meta.get('is_disc', False)) target_hdr = self.refine_hdr_terms(meta.get("hdr")) target_season = meta.get("season")