]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[toutv] Relax DRM check (closes #13994)
authorSergey M․ <dstftw@gmail.com>
Wed, 23 Aug 2017 15:28:09 +0000 (22:28 +0700)
committerSergey M․ <dstftw@gmail.com>
Wed, 23 Aug 2017 15:28:09 +0000 (22:28 +0700)
youtube_dl/extractor/toutv.py

index 26d770992ab1618c95094513371a01fcf99d1a70..071388dcc303556953e8c0df6fc48d7a2360bf88 100644 (file)
@@ -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']