1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-09-03 08:35:32 +00:00

[extractor] Better error message for DRM (#729)

Closes #636
This commit is contained in:
pukkandan
2021-08-23 01:38:38 +05:30
committed by GitHub
parent 9b5fa9ee7c
commit 88acdbc269
24 changed files with 66 additions and 62 deletions

View File

@ -92,7 +92,7 @@ class WatIE(InfoExtractor):
extract_formats({delivery.get('format'): delivery.get('url')})
if not formats:
if delivery.get('drm'):
self.raise_no_formats('This video is DRM protected.', expected=True)
self.report_drm(video_id)
manifest_urls = self._download_json(
'http://www.wat.tv/get/webhtml/' + video_id, video_id, fatal=False)
if manifest_urls: