[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

@@ -119,7 +119,7 @@ class ShahidIE(ShahidBaseIE):
'playout/new/url/' + video_id, video_id)['playout']
if not self.get_param('allow_unplayable_formats') and playout.get('drm'):
raise ExtractorError('This video is DRM protected.', expected=True)
self.report_drm(video_id)
formats = self._extract_m3u8_formats(re.sub(
# https://docs.aws.amazon.com/mediapackage/latest/ug/manifest-filtering.html