From ab44e3394fc1c76e2572a0a08671664cdafd212e Mon Sep 17 00:00:00 2001 From: Audionut Date: Fri, 13 Dec 2024 16:09:24 +1000 Subject: [PATCH] lint --- src/prep.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/prep.py b/src/prep.py index ba69741e..b62be21d 100644 --- a/src/prep.py +++ b/src/prep.py @@ -693,11 +693,11 @@ async def process_tracker(tracker_name, meta): meta['tag'] = f"-{meta['tag']}" meta = await self.get_season_episode(video, meta) meta = await self.tag_override(meta) - if meta.get('tag') == "-SubsPlease": # SubsPlease-specific - tracks = meta.get('mediainfo').get('media', {}).get('track', []) # Get all tracks + if meta.get('tag') == "-SubsPlease": # SubsPlease-specific + tracks = meta.get('mediainfo').get('media', {}).get('track', []) # Get all tracks bitrate = tracks[1].get('BitRate', '') if len(tracks) > 1 else '' # Get video bitrate if available bitrate_oldMediaInfo = tracks[0].get('OverallBitRate', '') if len(tracks) > 0 else '' # For old MediaInfo (< 24.x where video bitrate is empty, use 'OverallBitRate' instead) - if (bitrate.isdigit() and int(bitrate) >= 8000000) or (bitrate_oldMediaInfo.isdigit() and int(bitrate_oldMediaInfo) >= 8000000): + if (bitrate.isdigit() and int(bitrate) >= 8000000) or (bitrate_oldMediaInfo.isdigit() and int(bitrate_oldMediaInfo) >= 8000000): meta['service'] = "CR" elif (bitrate.isdigit() or bitrate_oldMediaInfo.isdigit()): # Only assign if at least one bitrate is present, otherwise leave it to user meta['service'] = "HIDI"