From ecb92e3720e9ed9b2efa9f8a97c03c88a0cbfcd9 Mon Sep 17 00:00:00 2001 From: Alexandre Huot Date: Wed, 2 Jan 2019 18:11:03 -0500 Subject: [PATCH] [radiocanada] Corrections after PR review --- youtube_dl/extractor/radiocanada.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/youtube_dl/extractor/radiocanada.py b/youtube_dl/extractor/radiocanada.py index cc2fd9261..148dbea1d 100644 --- a/youtube_dl/extractor/radiocanada.py +++ b/youtube_dl/extractor/radiocanada.py @@ -51,12 +51,14 @@ class RadioCanadaIE(InfoExtractor): }, }, { + # url from toutv that triggers false DRM validation 'url': 'radiocanada:toutv:140872', 'info_dict': { 'id': '140872', 'title': 'Épisode 1', - 'series': 'District 31' - } + 'series': 'District 31', + }, + 'only_matching': True, } ] @@ -75,7 +77,7 @@ class RadioCanadaIE(InfoExtractor): el = find_xpath_attr(metadata, './/Meta', 'name', name) return el.text if el is not None else None - # IsDrm does not necessarily mean the video is DRM protected (see + # protectionType does not necessarily mean the video is DRM protected (see # https://github.com/rg3/youtube-dl/issues/13994). if get_meta('protectionType'): self.report_warning('This video is probably DRM protected.')