projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c78e481
)
[extractor/common] Make m3u8 extraction for SMIL non fatal
author
Sergey M․
<dstftw@gmail.com>
Thu, 1 Oct 2015 16:59:20 +0000
(22:59 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Thu, 1 Oct 2015 16:59:20 +0000
(22:59 +0600)
youtube_dl/extractor/common.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/common.py
b/youtube_dl/extractor/common.py
index b928e24beed9cd161b2fa84c9b410980268c0061..9a5a7cc2cf9cc0626104925b06467529b870459d 100644
(file)
--- 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':