projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d49502
)
[vimeo] Do not fail when no hls formats
author
Sergey M․
<dstftw@gmail.com>
Sun, 11 Oct 2015 13:36:23 +0000
(19:36 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Sun, 11 Oct 2015 13:36:23 +0000
(19:36 +0600)
youtube_dl/extractor/vimeo.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/vimeo.py
b/youtube_dl/extractor/vimeo.py
index 346eb60b410636944f13cc73d646355e3805a945..6ee3069a8d52d0fde65468bd347d0d59dd749d56 100644
(file)
--- a/
youtube_dl/extractor/vimeo.py
+++ b/
youtube_dl/extractor/vimeo.py
@@
-403,7
+403,10
@@
class VimeoIE(VimeoBaseInfoExtractor):
formats = []
m3u8_url = config_files.get('hls', {}).get('all')
if m3u8_url:
- formats = self._extract_m3u8_formats(m3u8_url, video_id, 'mp4', 'm3u8_native', 0, 'hls', fatal=False)
+ m3u8_formats = self._extract_m3u8_formats(
+ m3u8_url, video_id, 'mp4', 'm3u8_native', 0, 'hls', fatal=False)
+ if m3u8_formats:
+ formats.append(m3u8_formats)
for key in ('other', 'sd', 'hd'):
formats += files[key]
self._sort_formats(formats)