diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-08-23 01:38:38 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-23 01:38:38 +0530 |
commit | 88acdbc2698169e22cdbf358e44765150434c69e (patch) | |
tree | a6cb42ac19943c4890b3ecd12b43e11808c9a0da /yt_dlp/extractor/hotstar.py | |
parent | 9b5fa9ee7ce859d63fa10b840ffff7c99c393d7e (diff) |
[extractor] Better error message for DRM (#729)
Closes #636
Diffstat (limited to 'yt_dlp/extractor/hotstar.py')
-rw-r--r-- | yt_dlp/extractor/hotstar.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/yt_dlp/extractor/hotstar.py b/yt_dlp/extractor/hotstar.py index e00e58646..8d8a8bd75 100644 --- a/yt_dlp/extractor/hotstar.py +++ b/yt_dlp/extractor/hotstar.py @@ -182,7 +182,8 @@ class HotStarIE(HotStarBaseIE): title = video_data['title'] if not self.get_param('allow_unplayable_formats') and video_data.get('drmProtected'): - raise ExtractorError('This video is DRM protected.', expected=True) + self.report_drm(video_id) + headers = {'Referer': 'https://www.hotstar.com/in'} formats = [] subs = {} |