diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-05-20 20:55:21 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-05-20 21:25:07 +0530 |
commit | 1a8cc83735ed748afa78764af1e724afa646d8f9 (patch) | |
tree | 33f36fe4678bde77497d439cd18ef7e574f77224 /yt_dlp/downloader/common.py | |
parent | 2762dbb17e8556140f9fff0c0aa3373c521f5e09 (diff) | |
download | hypervideo-pre-1a8cc83735ed748afa78764af1e724afa646d8f9.tar.lz hypervideo-pre-1a8cc83735ed748afa78764af1e724afa646d8f9.tar.xz hypervideo-pre-1a8cc83735ed748afa78764af1e724afa646d8f9.zip |
Bugfix for 3a408f9d199127ca2626359e21a866a09ab236b3
Diffstat (limited to 'yt_dlp/downloader/common.py')
-rw-r--r-- | yt_dlp/downloader/common.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/yt_dlp/downloader/common.py b/yt_dlp/downloader/common.py index d74692130..93eb10f76 100644 --- a/yt_dlp/downloader/common.py +++ b/yt_dlp/downloader/common.py @@ -11,11 +11,11 @@ from ..minicurses import ( MultilinePrinter, QuietMultilinePrinter, ) -from ..compat import functools from ..utils import ( NUMBER_RE, LockingUnsupportedError, Namespace, + classproperty, decodeArgument, encodeFilename, error_to_compat_str, @@ -103,9 +103,9 @@ class FileDownloader: __to_screen = to_screen - @functools.cached_property - def FD_NAME(self): - return re.sub(r'(?<!^)(?=[A-Z])', '_', type(self).__name__[:-2]).lower() + @classproperty + def FD_NAME(cls): + return re.sub(r'(?<!^)(?=[A-Z])', '_', cls.__name__[:-2]).lower() @staticmethod def format_seconds(seconds): |