]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[npo] Skip broken URL links (Closes #5266)
authorSergey M․ <dstftw@gmail.com>
Mon, 23 Mar 2015 16:15:01 +0000 (22:15 +0600)
committerSergey M․ <dstftw@gmail.com>
Mon, 23 Mar 2015 16:15:01 +0000 (22:15 +0600)
youtube_dl/extractor/npo.py

index 557dffa46846ff8a4c94f6bb102a186fa1ce5eb8..5d84485714b9f360d47c8676710e9c3e6d9578c7 100644 (file)
@@ -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