1
0
Fork 0

[cleanup Misc

Closes #5162
This commit is contained in:
pukkandan 2022-10-18 23:28:57 +05:30
commit d5d1df8afd
No known key found for this signature in database
GPG key ID: 7EEE9E1E817D0A39
12 changed files with 48 additions and 32 deletions

View file

@ -1108,7 +1108,9 @@ class InfoExtractor:
return self._downloader.params.get(name, default, *args, **kwargs)
return default
def report_drm(self, video_id, partial=False):
def report_drm(self, video_id, partial=NO_DEFAULT):
if partial is not NO_DEFAULT:
self._downloader.deprecation_warning('InfoExtractor.report_drm no longer accepts the argument partial')
self.raise_no_formats('This video is DRM protected', expected=True, video_id=video_id)
def report_extraction(self, id_or_name):