Skip to content

Commit

Permalink
Update video_info.py
Browse files Browse the repository at this point in the history
Patch jdf76#2 for Issue jdf76#773 (Premiere exits after 5 seconds).

Ensure stream 'Bandwith' property is always set to a value. Default to 0 instead of NoneType
  • Loading branch information
jpfox156 authored Apr 13, 2020
1 parent 27d2131 commit 2b9b895
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/lib/youtube_plugin/youtube/helper/video_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -1204,7 +1204,7 @@ def filter_qualities(stream_data, container, sorted_qualities, fps_limit):

data[mime][i]['quality_label'] = str(stream_map.get('qualityLabel'))

data[mime][i]['bandwidth'] = stream_map.get('bitrate')
data[mime][i]['bandwidth'] = stream_map.get('bitrate', 0)

# map frame rates to a more common representation to lessen the chance of double refresh changes
# sometimes 30 fps is 30 fps, more commonly it is 29.97 fps (same for all mapped frame rates)
Expand Down

0 comments on commit 2b9b895

Please sign in to comment.