aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2017-09-02 15:33:54 +0700
committerSergey M․ <dstftw@gmail.com>2017-09-02 15:33:54 +0700
commita3431e12249530aa7a6962e54bcdbfce190c4c4d (patch)
tree894ffc04b42e87edbb07fd9c69829c11940ceaef
parenta2022b0c406286aa3d5101f1c85e7d11453e89d5 (diff)
downloadyoutube-dl-a3431e12249530aa7a6962e54bcdbfce190c4c4d.tar.xz
[radiocanada] Skip unsupported platforms (closes #14100)
-rw-r--r--youtube_dl/extractor/radiocanada.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/youtube_dl/extractor/radiocanada.py b/youtube_dl/extractor/radiocanada.py
index 3b40002a8..6bbc2781c 100644
--- a/youtube_dl/extractor/radiocanada.py
+++ b/youtube_dl/extractor/radiocanada.py
@@ -59,6 +59,7 @@ class RadioCanadaIE(InfoExtractor):
device_types.append('android')
formats = []
+ error = None
# TODO: extract f4m formats
# f4m formats can be extracted using flashhd device_type but they produce unplayable file
for device_type in device_types:
@@ -84,8 +85,8 @@ class RadioCanadaIE(InfoExtractor):
if not v_url:
continue
if v_url == 'null':
- raise ExtractorError('%s said: %s' % (
- self.IE_NAME, xpath_text(v_data, 'message')), expected=True)
+ error = xpath_text(v_data, 'message')
+ continue
ext = determine_ext(v_url)
if ext == 'm3u8':
formats.extend(self._extract_m3u8_formats(
@@ -129,6 +130,9 @@ class RadioCanadaIE(InfoExtractor):
formats.extend(self._extract_f4m_formats(
base_url + '/manifest.f4m', video_id,
f4m_id='hds', fatal=False))
+ if not formats and error:
+ raise ExtractorError(
+ '%s said: %s' % (self.IE_NAME, error), expected=True)
self._sort_formats(formats)
subtitles = {}