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/sonyliv.py | |
parent | 9b5fa9ee7ce859d63fa10b840ffff7c99c393d7e (diff) |
[extractor] Better error message for DRM (#729)
Closes #636
Diffstat (limited to 'yt_dlp/extractor/sonyliv.py')
-rw-r--r-- | yt_dlp/extractor/sonyliv.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/extractor/sonyliv.py b/yt_dlp/extractor/sonyliv.py index 60181f06d..c3ed44275 100644 --- a/yt_dlp/extractor/sonyliv.py +++ b/yt_dlp/extractor/sonyliv.py @@ -83,7 +83,7 @@ class SonyLIVIE(InfoExtractor): content = self._call_api( '1.5', 'IN/CONTENT/VIDEOURL/VOD/' + video_id, video_id) if not self.get_param('allow_unplayable_formats') and content.get('isEncrypted'): - raise ExtractorError('This video is DRM protected.', expected=True) + self.report_drm(video_id) dash_url = content['videoURL'] headers = { 'x-playback-session-id': '%s-%d' % (uuid.uuid4().hex, time.time() * 1000) |