diff options
author | Remita Amine <remitamine@gmail.com> | 2021-02-23 13:50:18 +0100 |
---|---|---|
committer | Remita Amine <remitamine@gmail.com> | 2021-02-23 13:50:18 +0100 |
commit | 1631fca1ee1c3312027c702854d741bbb8025dcd (patch) | |
tree | 4ea3189ab37eee7149c531847aa43079b874b9d7 /youtube_dl/extractor/wat.py | |
parent | 295860ff00c5d8caf94badd4f04671f6a631fcae (diff) |
[wat] detect DRM protected videos(closes #27958)
Diffstat (limited to 'youtube_dl/extractor/wat.py')
-rw-r--r-- | youtube_dl/extractor/wat.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/youtube_dl/extractor/wat.py b/youtube_dl/extractor/wat.py index 147931d73..f1bccc2d6 100644 --- a/youtube_dl/extractor/wat.py +++ b/youtube_dl/extractor/wat.py @@ -64,7 +64,7 @@ class WatIE(InfoExtractor): if error_desc: if video_info.get('error_code') == 'GEOBLOCKED': self.raise_geo_restricted(error_desc, video_info.get('geoList')) - raise ExtractorError(error_desc) + raise ExtractorError(error_desc, expected=True) title = video_info['title'] @@ -86,6 +86,8 @@ class WatIE(InfoExtractor): delivery = video_data.get('delivery') or {} extract_formats({delivery.get('format'): delivery.get('url')}) if not formats: + if delivery.get('drm'): + raise ExtractorError('This video is DRM protected.', expected=True) manifest_urls = self._download_json( 'http://www.wat.tv/get/webhtml/' + video_id, video_id, fatal=False) if manifest_urls: |