From 6eb6d6dff5add8b17babebb3a1a3da7948e5ee18 Mon Sep 17 00:00:00 2001 From: dirkf Date: Fri, 4 Apr 2025 11:36:35 +0100 Subject: [InfoExtractor] Use local variants for remaining parent method calls * ... where defined --- youtube_dl/cache.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'youtube_dl/cache.py') diff --git a/youtube_dl/cache.py b/youtube_dl/cache.py index 54c24b7e4..ba12d0373 100644 --- a/youtube_dl/cache.py +++ b/youtube_dl/cache.py @@ -42,11 +42,11 @@ class Cache(object): def _to_screen(self, *args, **kwargs): self._ydl.to_screen(*args, **kwargs) - def _get_params(self, k, default=None): + def _get_param(self, k, default=None): return self._ydl.params.get(k, default) def _get_root_dir(self): - res = self._get_params('cachedir') + res = self._get_param('cachedir') if res is None: cache_root = compat_getenv('XDG_CACHE_HOME', '~/.cache') res = os.path.join(cache_root, self._YTDL_DIR) @@ -61,7 +61,7 @@ class Cache(object): @property def enabled(self): - return self._get_params('cachedir') is not False + return self._get_param('cachedir') is not False def store(self, section, key, data, dtype='json'): assert dtype in ('json',) -- cgit v1.2.3