mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-11 15:56:07 -07:00
Fix crashing when streaming clips
This commit is contained in:
parent
862c9cea87
commit
00e281dfb7
1 changed files with 1 additions and 1 deletions
|
@ -1506,7 +1506,7 @@ class PmsConnect(object):
|
|||
# Get the quality profile
|
||||
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'])
|
||||
video_bitrate = helpers.cast_to_int(source_video_details.get('video_bitrate'))
|
||||
|
||||
try:
|
||||
quailtiy_bitrate = min(b for b in common.QUALITY_PROFILES if stream_video_bitrate <= b <= video_bitrate)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue