diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-10-01 22:59:20 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-10-01 22:59:20 +0600 |
commit | 3a1341a7bc9f11d972c7649a33e143fab72f8bc0 (patch) | |
tree | 92e784525ff9f2b7d86f2c6e056c8026f66fee9d /youtube_dl | |
parent | c78e48177c72baa0c985c4d47f95e6edc6ec33dc (diff) |
[extractor/common] Make m3u8 extraction for SMIL non fatal
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/common.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py index b928e24be..9a5a7cc2c 100644 --- a/youtube_dl/extractor/common.py +++ b/youtube_dl/extractor/common.py @@ -1129,8 +1129,10 @@ class InfoExtractor(object): src_url = src if src.startswith('http') else compat_urlparse.urljoin(base, src) if proto == 'm3u8' or src_ext == 'm3u8': - formats.extend(self._extract_m3u8_formats( - src_url, video_id, ext or 'mp4', m3u8_id='hls')) + m3u8_formats = self._extract_m3u8_formats( + src_url, video_id, ext or 'mp4', m3u8_id='hls', fatal=False) + if m3u8_formats: + formats.extend(m3u8_formats) continue if src_ext == 'f4m': |