Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Audionut committed Dec 13, 2024
1 parent db85cf3 commit ab44e33
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/prep.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit ab44e33

Please sign in to comment.