aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/downloader/common.py
diff options
context:
space:
mode:
Diffstat (limited to 'yt_dlp/downloader/common.py')
-rw-r--r--yt_dlp/downloader/common.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/yt_dlp/downloader/common.py b/yt_dlp/downloader/common.py
index 276675532..d74692130 100644
--- a/yt_dlp/downloader/common.py
+++ b/yt_dlp/downloader/common.py
@@ -11,6 +11,7 @@ from ..minicurses import (
MultilinePrinter,
QuietMultilinePrinter,
)
+from ..compat import functools
from ..utils import (
NUMBER_RE,
LockingUnsupportedError,
@@ -102,7 +103,7 @@ class FileDownloader:
__to_screen = to_screen
- @property
+ @functools.cached_property
def FD_NAME(self):
return re.sub(r'(?<!^)(?=[A-Z])', '_', type(self).__name__[:-2]).lower()