[youtube] Improve 26e8e04454

The streams of the same itag may have slightly different size/bitrate
This commit is contained in:
pukkandan 2021-08-26 08:25:56 +05:30
parent 26e8e04454
commit c311988d19
No known key found for this signature in database
GPG key ID: 0F00D95A001F4698

View file

@ -2819,7 +2819,7 @@ def feed_entry(name):
# Source is given priority since formats that throttle are given lower source_preference
# When throttling issue is fully fixed, remove this
self._sort_formats(formats, ('quality', 'res', 'fps', 'source', 'codec:vp9.2', 'size', 'br', 'lang'))
self._sort_formats(formats, ('quality', 'res', 'fps', 'source', 'codec:vp9.2', 'lang'))
keywords = get_first(video_details, 'keywords', expected_type=list) or []
if not keywords and webpage: