diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-11-30 11:34:51 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-12-03 19:52:31 +0530 |
commit | 71df9b7fd504767583cf1e088ae307c942799f2b (patch) | |
tree | 42112aba8946aee047ee9a8e411a00131882f0c8 /yt_dlp/downloader/common.py | |
parent | c9f5ce511877ae4f22d2eb2f70c3c6edf6c1971d (diff) | |
download | hypervideo-pre-71df9b7fd504767583cf1e088ae307c942799f2b.tar.lz hypervideo-pre-71df9b7fd504767583cf1e088ae307c942799f2b.tar.xz hypervideo-pre-71df9b7fd504767583cf1e088ae307c942799f2b.zip |
[cleanup] Misc
Diffstat (limited to 'yt_dlp/downloader/common.py')
-rw-r--r-- | yt_dlp/downloader/common.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/yt_dlp/downloader/common.py b/yt_dlp/downloader/common.py index fe3633250..077b29b41 100644 --- a/yt_dlp/downloader/common.py +++ b/yt_dlp/downloader/common.py @@ -20,6 +20,7 @@ from ..utils import ( RetryManager, classproperty, decodeArgument, + deprecation_warning, encodeFilename, format_bytes, join_nonempty, @@ -180,7 +181,9 @@ class FileDownloader: @staticmethod def parse_bytes(bytestr): """Parse a string indicating a byte quantity into an integer.""" - parse_bytes(bytestr) + deprecation_warning('yt_dlp.FileDownloader.parse_bytes is deprecated and ' + 'may be removed in the future. Use yt_dlp.utils.parse_bytes instead') + return parse_bytes(bytestr) def slow_down(self, start_time, now, byte_counter): """Sleep if the download speed is over the rate limit.""" |