mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-12 08:16:06 -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
|
# Get the quality profile
|
||||||
if media_type in ('movie', 'episode', 'clip') and 'stream_video_bitrate' in video_details:
|
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'])
|
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:
|
try:
|
||||||
quailtiy_bitrate = min(b for b in common.QUALITY_PROFILES if stream_video_bitrate <= b <= video_bitrate)
|
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