aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/postprocessor/common.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-11-29 23:16:06 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-11-29 23:34:33 +0530
commitee8dd27a7351841e1de8cebf8311b69fbef09eab (patch)
tree97d8060695b84fe0e86d45132afd72d51bf2e60b /yt_dlp/postprocessor/common.py
parentf304da8a290ac19ac419f3fafb5891903785ebaa (diff)
downloadhypervideo-pre-ee8dd27a7351841e1de8cebf8311b69fbef09eab.tar.lz
hypervideo-pre-ee8dd27a7351841e1de8cebf8311b69fbef09eab.tar.xz
hypervideo-pre-ee8dd27a7351841e1de8cebf8311b69fbef09eab.zip
[cleanup] Add deprecation warnings
Diffstat (limited to 'yt_dlp/postprocessor/common.py')
-rw-r--r--yt_dlp/postprocessor/common.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/yt_dlp/postprocessor/common.py b/yt_dlp/postprocessor/common.py
index b36716743..ab9eb6acf 100644
--- a/yt_dlp/postprocessor/common.py
+++ b/yt_dlp/postprocessor/common.py
@@ -9,6 +9,7 @@ from ..utils import (
_configuration_args,
encodeFilename,
PostProcessingError,
+ write_string,
)
@@ -74,6 +75,11 @@ class PostProcessor(metaclass=PostProcessorMetaClass):
if self._downloader:
return self._downloader.report_warning(text, *args, **kwargs)
+ def deprecation_warning(self, text):
+ if self._downloader:
+ return self._downloader.deprecation_warning(text)
+ write_string(f'DeprecationWarning: {text}')
+
def report_error(self, text, *args, **kwargs):
# Exists only for compatibility. Do not use
if self._downloader: