]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/cache.py
[fd/hls] Apply `extra_param_to_key_url` from info dict
[yt-dlp.git] / yt_dlp / cache.py
index 9dd4f2f25b91a114cfb2ead8949e8fae654e8b69..71dca82b3584f9aa5d9120070825b9726bd9f96f 100644 (file)
@@ -81,10 +81,10 @@ def remove(self):
 
         cachedir = self._get_root_dir()
         if not any((term in cachedir) for term in ('cache', 'tmp')):
-            raise Exception('Not removing directory %s - this does not look like a cache dir' % cachedir)
+            raise Exception(f'Not removing directory {cachedir} - this does not look like a cache dir')
 
         self._ydl.to_screen(
-            'Removing cache dir %s .' % cachedir, skip_eol=True)
+            f'Removing cache dir {cachedir} .', skip_eol=True)
         if os.path.exists(cachedir):
             self._ydl.to_screen('.', skip_eol=True)
             shutil.rmtree(cachedir)