mirror of
https://github.com/yt-dlp/yt-dlp
synced 2025-12-22 00:55:43 +07:00
Allow opts.cachedir == None to disable cache
This commit is contained in:
@@ -438,7 +438,7 @@ def _extract_signature_function(self, video_id, player_url, slen):
|
||||
cache_dir = self._downloader.params.get('cachedir',
|
||||
u'~/.youtube-dl/cache')
|
||||
|
||||
cache_enabled = cache_dir != u'NONE'
|
||||
cache_enabled = cache_dir is not None
|
||||
if cache_enabled:
|
||||
cache_fn = os.path.join(os.path.expanduser(cache_dir),
|
||||
u'youtube-sigfuncs',
|
||||
|
||||
Reference in New Issue
Block a user