aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-10-11 19:36:23 +0600
committerSergey M․ <dstftw@gmail.com>2015-10-11 19:36:23 +0600
commitda4daed5ef77b4a7219b1786978065a3606b85bc (patch)
tree4d5fa338cc53a529db994ffd1f91b6cf8be1f6da
parent7d49502ab0990972bdb479e6bf32dbc8ffdb3e1c (diff)
downloadyoutube-dl-da4daed5ef77b4a7219b1786978065a3606b85bc.tar.xz
[vimeo] Do not fail when no hls formats
-rw-r--r--youtube_dl/extractor/vimeo.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/youtube_dl/extractor/vimeo.py b/youtube_dl/extractor/vimeo.py
index 346eb60b4..6ee3069a8 100644
--- 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)