mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-29 21:52:54 +00:00
[vimeo] add parameters to _extract_m3u8_formats and sort formats
This commit is contained in:
parent
f4076bb736
commit
e5c209a1bc
1 changed files with 2 additions and 1 deletions
|
@ -402,11 +402,12 @@ class VimeoIE(VimeoBaseInfoExtractor):
|
||||||
formats = []
|
formats = []
|
||||||
hls = config_files.get("hls")
|
hls = config_files.get("hls")
|
||||||
if hls:
|
if hls:
|
||||||
formats = self._extract_m3u8_formats(hls['all'], video_id, m3u8_id='hls')
|
formats = self._extract_m3u8_formats(hls['all'], video_id, 'mp4', 'm3u8_native', 0, 'hls', fatal=False)
|
||||||
for key in ('other', 'sd', 'hd'):
|
for key in ('other', 'sd', 'hd'):
|
||||||
formats += files[key]
|
formats += files[key]
|
||||||
if len(formats) == 0:
|
if len(formats) == 0:
|
||||||
raise ExtractorError('No known codec found')
|
raise ExtractorError('No known codec found')
|
||||||
|
self._sort_formats(formats)
|
||||||
|
|
||||||
subtitles = {}
|
subtitles = {}
|
||||||
text_tracks = config['request'].get('text_tracks')
|
text_tracks = config['request'].get('text_tracks')
|
||||||
|
|
Loading…
Reference in a new issue