diff options
author | Sergey M․ <dstftw@gmail.com> | 2017-08-23 22:28:09 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2017-08-23 22:28:09 +0700 |
commit | 8d7a24aff60a57e651bab40f16a81eb7dffb405c (patch) | |
tree | c0182a8147e1f0c389c68b8e616d4893e0bdb7ae /youtube_dl | |
parent | 37d9af306a928ce2184dcb60883e98ec0dd570ae (diff) |
[toutv] Relax DRM check (closes #13994)
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/toutv.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/youtube_dl/extractor/toutv.py b/youtube_dl/extractor/toutv.py index 26d770992..071388dcc 100644 --- a/youtube_dl/extractor/toutv.py +++ b/youtube_dl/extractor/toutv.py @@ -78,8 +78,10 @@ class TouTvIE(InfoExtractor): def _real_extract(self, url): path = self._match_id(url) metadata = self._download_json('http://ici.tou.tv/presentation/%s' % path, path) + # IsDrm does not necessarily mean the video is DRM protected (see + # https://github.com/rg3/youtube-dl/issues/13994). if metadata.get('IsDrm'): - raise ExtractorError('This video is DRM protected.', expected=True) + self.report_warning('This video is probably DRM protected.', path) video_id = metadata['IdMedia'] details = metadata['Details'] title = details['OriginalTitle'] |