1
0
Fork 0

[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
commit 88acdbc269
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
24 changed files with 66 additions and 62 deletions

View file

@ -202,7 +202,7 @@ class RuutuIE(InfoExtractor):
if not formats:
if (not self.get_param('allow_unplayable_formats')
and xpath_text(video_xml, './Clip/DRM', default=None)):
self.raise_no_formats('This video is DRM protected.', expected=True)
self.report_drm(video_id)
ns_st_cds = pv('ns_st_cds')
if ns_st_cds != 'free':
raise ExtractorError('This video is %s.' % ns_st_cds, expected=True)