diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2013-09-24 21:04:43 +0200 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2013-09-24 21:04:43 +0200 |
commit | c3c88a2664595fd62898e44f8fc93c84e6d3c5a4 (patch) | |
tree | 8a70cc424526998dbc1e346a64fbc858266dd7ba /youtube_dl/extractor | |
parent | c705320f485cd962827fce464a93993569e3173f (diff) |
Allow opts.cachedir == None to disable cache
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/youtube.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index 049da2f91..a6eefdf4e 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -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', |