diff options
author | Jesús <heckyel@hyperbola.info> | 2021-11-30 17:19:55 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2021-11-30 17:19:55 -0500 |
commit | ccf02e63e53e481824b56b4e05ab1c2a9558c9a7 (patch) | |
tree | 41ad503be3ca01b0d83d0585f577bcf871b3f159 /yt_dlp/extractor/vimeo.py | |
parent | 54288332f1d8ec2974c65281e6a712e56b5cd24f (diff) | |
parent | 1bad50eced921126ea6587d9ae99e98164da500b (diff) | |
download | hypervideo-pre-ccf02e63e53e481824b56b4e05ab1c2a9558c9a7.tar.lz hypervideo-pre-ccf02e63e53e481824b56b4e05ab1c2a9558c9a7.tar.xz hypervideo-pre-ccf02e63e53e481824b56b4e05ab1c2a9558c9a7.zip |
updated from upstream | 30/11/2021 at 17:19
Diffstat (limited to 'yt_dlp/extractor/vimeo.py')
-rw-r--r-- | yt_dlp/extractor/vimeo.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/yt_dlp/extractor/vimeo.py b/yt_dlp/extractor/vimeo.py index e2b86662b..27d5c969d 100644 --- a/yt_dlp/extractor/vimeo.py +++ b/yt_dlp/extractor/vimeo.py @@ -119,10 +119,9 @@ class VimeoBaseInfoExtractor(InfoExtractor): self._set_cookie('vimeo.com', name, value) def _vimeo_sort_formats(self, formats): - # Bitrates are completely broken. Single m3u8 may contain entries in kbps and bps - # at the same time without actual units specified. This lead to wrong sorting. - # But since yt-dlp prefers 'res,fps' anyway, 'field_preference' is not needed - self._sort_formats(formats) + # Note: Bitrates are completely broken. Single m3u8 may contain entries in kbps and bps + # at the same time without actual units specified. + self._sort_formats(formats, ('quality', 'res', 'fps', 'hdr:12', 'source')) def _parse_config(self, config, video_id): video_data = config['video'] @@ -140,6 +139,7 @@ class VimeoBaseInfoExtractor(InfoExtractor): formats.append({ 'url': video_url, 'format_id': 'http-%s' % f.get('quality'), + 'source_preference': 10, 'width': int_or_none(f.get('width')), 'height': int_or_none(f.get('height')), 'fps': int_or_none(f.get('fps')), |