Add HDR information to formats

This commit is contained in:
pukkandan
2021-10-18 18:34:21 +05:30
parent 17bddf3e95
commit 176f1866cb
6 changed files with 47 additions and 6 deletions

View File

@@ -2653,7 +2653,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
# 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', 'lang'))
self._sort_formats(formats, ('quality', 'res', 'fps', 'hdr:12', 'source', 'codec:vp9.2', 'lang'))
keywords = get_first(video_details, 'keywords', expected_type=list) or []
if not keywords and webpage: