Skip to content

Commit

Permalink
Handle lack of video_encode
Browse files Browse the repository at this point in the history
  • Loading branch information
Audionut committed Dec 1, 2024
1 parent d1dde04 commit b9f8f1a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/trackers/COMMON.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit b9f8f1a

Please sign in to comment.