projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[vimeo] remove check for empty formats
[youtube-dl]
/
youtube_dl
/
extractor
/
vimeo.py
diff --git
a/youtube_dl/extractor/vimeo.py
b/youtube_dl/extractor/vimeo.py
index 7dd52627dab8e47a84f6793abb44cec5b885e2da..2051ac9de58cea3ec38e9fece0ff5ef629aa506f 100644
(file)
--- a/
youtube_dl/extractor/vimeo.py
+++ b/
youtube_dl/extractor/vimeo.py
@@
-397,12
+397,15
@@
class VimeoIE(VimeoBaseInfoExtractor):
'format_id': format_id,
'width': file_info.get('width'),
'height': file_info.get('height'),
'format_id': format_id,
'width': file_info.get('width'),
'height': file_info.get('height'),
+ 'tbr': file_info.get('bitrate'),
})
formats = []
})
formats = []
+ hls = config_files.get("hls")
+ if hls:
+ formats = self._extract_m3u8_formats(hls['all'], video_id, 'mp4', 'm3u8_native', 0, 'hls', fatal=False)
for key in ('other', 'sd', 'hd'):
formats += files[key]
for key in ('other', 'sd', 'hd'):
formats += files[key]
- if len(formats) == 0:
- raise ExtractorError('No known codec found')
+ self._sort_formats(formats)
subtitles = {}
text_tracks = config['request'].get('text_tracks')
subtitles = {}
text_tracks = config['request'].get('text_tracks')