aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/common.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-10-18 23:28:57 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-10-18 23:52:44 +0530
commitd5d1df8afdd532cc889f9d95be0740668a0776fe (patch)
tree86f30088a9c90d60ddd581618165b3446fa39f2e /yt_dlp/extractor/common.py
parentcd5df121f3577178cb73bafe886677da9452dc42 (diff)
downloadhypervideo-pre-d5d1df8afdd532cc889f9d95be0740668a0776fe.tar.lz
hypervideo-pre-d5d1df8afdd532cc889f9d95be0740668a0776fe.tar.xz
hypervideo-pre-d5d1df8afdd532cc889f9d95be0740668a0776fe.zip
[cleanup Misc
Closes #5162
Diffstat (limited to 'yt_dlp/extractor/common.py')
-rw-r--r--yt_dlp/extractor/common.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/yt_dlp/extractor/common.py b/yt_dlp/extractor/common.py
index ab8def57d..ec3fb58e5 100644
--- a/yt_dlp/extractor/common.py
+++ b/yt_dlp/extractor/common.py
@@ -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):