projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4de6131
)
[extractor/common] Make f4m extraction for SMIL non fatal
author
Sergey M․
<dstftw@gmail.com>
Thu, 1 Oct 2015 17:04:56 +0000
(23:04 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Thu, 1 Oct 2015 17:04:56 +0000
(23:04 +0600)
youtube_dl/extractor/common.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/common.py
b/youtube_dl/extractor/common.py
index c2aa3a7495d2591ac6b2a50dfd19702a4a633283..4fe2307cdd42b9187d86940c2628b2648fc97d7b 100644
(file)
--- a/
youtube_dl/extractor/common.py
+++ b/
youtube_dl/extractor/common.py
@@
-1152,7
+1152,9
@@
class InfoExtractor(object):
}
f4m_url += '&' if '?' in f4m_url else '?'
f4m_url += compat_urllib_parse.urlencode(f4m_params)
- formats.extend(self._extract_f4m_formats(f4m_url, video_id, f4m_id='hds'))
+ f4m_formats = self._extract_f4m_formats(f4m_url, video_id, f4m_id='hds', fatal=False)
+ if f4m_formats:
+ formats.extend(f4m_formats)
continue
if src_url.startswith('http') and self._is_valid_url(src, video_id):