mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-16 02:02:58 -07:00
Fix crash if session is missing stream_video_bitrate
This commit is contained in:
parent
beb8df9dda
commit
e71e588a91
1 changed files with 1 additions and 1 deletions
|
@ -1475,7 +1475,7 @@ class PmsConnect(object):
|
|||
source_subtitle_details = next((p for p in source_media_part_streams if p['id'] == subtitle_id), {})
|
||||
|
||||
# Get the quality profile
|
||||
if media_type in ('movie', 'episode', 'clip'):
|
||||
if media_type in ('movie', 'episode', 'clip') and 'stream_video_bitrate' in video_details:
|
||||
stream_video_bitrate = helpers.cast_to_int(video_details['stream_video_bitrate'])
|
||||
video_bitrate = helpers.cast_to_int(source_video_details['video_bitrate'])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue