aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorAlexandre Huot <alexandre.huot@usherbrooke.ca>2019-01-20 06:33:09 -0500
committerSergey M <dstftw@gmail.com>2019-01-20 18:33:09 +0700
commit29cfcb43da8ac60e6c2eddad095a41c800d4d95a (patch)
tree50584fc13a967ee1a79c5bc42d8ad92c094309e1 /youtube_dl/extractor
parenta1a460759815414c6194bc921ac77a5533b6e02e (diff)
[radiocanada] Relax DRM check
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/radiocanada.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/youtube_dl/extractor/radiocanada.py b/youtube_dl/extractor/radiocanada.py
index b952e59b4..302f67d96 100644
--- a/youtube_dl/extractor/radiocanada.py
+++ b/youtube_dl/extractor/radiocanada.py
@@ -49,6 +49,16 @@ class RadioCanadaIE(InfoExtractor):
# m3u8 download
'skip_download': True,
},
+ },
+ {
+ # with protectionType but not actually DRM protected
+ 'url': 'radiocanada:toutv:140872',
+ 'info_dict': {
+ 'id': '140872',
+ 'title': 'Épisode 1',
+ 'series': 'District 31',
+ },
+ 'only_matching': True,
}
]
@@ -67,8 +77,10 @@ class RadioCanadaIE(InfoExtractor):
el = find_xpath_attr(metadata, './/Meta', 'name', name)
return el.text if el is not None else None
+ # protectionType does not necessarily mean the video is DRM protected (see
+ # https://github.com/rg3/youtube-dl/pull/18609).
if get_meta('protectionType'):
- raise ExtractorError('This video is DRM protected.', expected=True)
+ self.report_warning('This video is probably DRM protected.')
device_types = ['ipad']
if not smuggled_data: