Allow opts.cachedir == None to disable cache
This commit is contained in:
parent
c705320f48
commit
c3c88a2664
3 changed files with 3 additions and 3 deletions
|
@ -438,7 +438,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor):
|
|||
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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue