From 00e281dfb7c319ade639f3e412fbefa76ef126c9 Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Tue, 8 Aug 2017 21:37:57 -0700 Subject: [PATCH] Fix crashing when streaming clips --- plexpy/pmsconnect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plexpy/pmsconnect.py b/plexpy/pmsconnect.py index 669a0e69..f5e85d99 100644 --- a/plexpy/pmsconnect.py +++ b/plexpy/pmsconnect.py @@ -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)