aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-03-23 22:15:01 +0600
committerSergey M․ <dstftw@gmail.com>2015-03-23 22:15:01 +0600
commitb0872c19ea6fb5dcc20d695d6faead4af42da364 (patch)
treeb1dccdc024c2a4da58c283c0f0a69e1e6635e977 /youtube_dl/extractor
parent9f790b9901445d532564b3c5c90c0ecfaea4805d (diff)
[npo] Skip broken URL links (Closes #5266)
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/npo.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/youtube_dl/extractor/npo.py b/youtube_dl/extractor/npo.py
index 557dffa46..5d8448571 100644
--- a/youtube_dl/extractor/npo.py
+++ b/youtube_dl/extractor/npo.py
@@ -231,7 +231,10 @@ class NPOLiveIE(NPOBaseIE):
stream_url = self._download_json(
stream_info['stream'], display_id,
'Downloading %s URL' % stream_type,
- transform_source=strip_jsonp)
+ 'Unable to download %s URL' % stream_type,
+ transform_source=strip_jsonp, fatal=False)
+ if not stream_url:
+ continue
if stream_type == 'hds':
f4m_formats = self._extract_f4m_formats(stream_url, display_id)
# f4m downloader downloads only piece of live stream