diff options
author | Jesús <heckyel@hyperbola.info> | 2021-11-30 17:19:55 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2021-11-30 17:19:55 -0500 |
commit | ccf02e63e53e481824b56b4e05ab1c2a9558c9a7 (patch) | |
tree | 41ad503be3ca01b0d83d0585f577bcf871b3f159 /yt_dlp/postprocessor/common.py | |
parent | 54288332f1d8ec2974c65281e6a712e56b5cd24f (diff) | |
parent | 1bad50eced921126ea6587d9ae99e98164da500b (diff) | |
download | hypervideo-pre-ccf02e63e53e481824b56b4e05ab1c2a9558c9a7.tar.lz hypervideo-pre-ccf02e63e53e481824b56b4e05ab1c2a9558c9a7.tar.xz hypervideo-pre-ccf02e63e53e481824b56b4e05ab1c2a9558c9a7.zip |
updated from upstream | 30/11/2021 at 17:19
Diffstat (limited to 'yt_dlp/postprocessor/common.py')
-rw-r--r-- | yt_dlp/postprocessor/common.py | 6 |
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: |