aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-10-01 23:04:56 +0600
committerSergey M․ <dstftw@gmail.com>2015-10-01 23:04:56 +0600
commite5851b963ab0872f27f2db1cff3c89548b6bf95e (patch)
tree1479ed1f12f495670f40211ebbc05c417450c3a3
parent4de6131090e0232c7cc99bcaafe6a3e71269b7af (diff)
downloadyoutube-dl-e5851b963ab0872f27f2db1cff3c89548b6bf95e.tar.xz
[extractor/common] Make f4m extraction for SMIL non fatal
-rw-r--r--youtube_dl/extractor/common.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py
index c2aa3a749..4fe2307cd 100644
--- 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):