Skip to content

Commit

Permalink
[radiocanada] Relax DRM check
Browse files Browse the repository at this point in the history
  • Loading branch information
alexhuot1 authored and dstftw committed Jan 20, 2019
1 parent a1a4607 commit 29cfcb4
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion youtube_dl/extractor/radiocanada.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
]

Expand All @@ -67,8 +77,10 @@ def get_meta(name):
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:
Expand Down

0 comments on commit 29cfcb4

Please sign in to comment.