diff options
author | Yen Chi Hsuan <yan12125@gmail.com> | 2015-07-06 08:40:38 +0800 |
---|---|---|
committer | Yen Chi Hsuan <yan12125@gmail.com> | 2015-07-06 08:41:14 +0800 |
commit | 59a83d3e5b9c09d0c6e8fb430ea99d71ef6e2eba (patch) | |
tree | 7c710da55b117041f1f486273290563c01989cf9 /youtube_dl | |
parent | 13af92fdc443f753dcb3cb91736b09a4ae85c36a (diff) |
[spiegeltv] Skip invalid m3u8 manifests (closes #6157)
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/spiegeltv.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/youtube_dl/extractor/spiegeltv.py b/youtube_dl/extractor/spiegeltv.py index 08a5c4314..27f4033c5 100644 --- a/youtube_dl/extractor/spiegeltv.py +++ b/youtube_dl/extractor/spiegeltv.py @@ -77,11 +77,13 @@ class SpiegeltvIE(InfoExtractor): 'rtmp_live': True, }) elif determine_ext(endpoint) == 'm3u8': - formats.extend(self._extract_m3u8_formats( + m3u8_formats = self._extract_m3u8_formats( endpoint.replace('[video]', play_path), video_id, 'm4v', preference=1, # Prefer hls since it allows to workaround georestriction - m3u8_id='hls')) + m3u8_id='hls', fatal=False) + if m3u8_formats is not False: + formats.extend(m3u8_formats) else: formats.append({ 'url': endpoint, |