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/__init__.py | |
parent | c705320f485cd962827fce464a93993569e3173f (diff) |
Allow opts.cachedir == None to disable cache
Diffstat (limited to 'youtube_dl/__init__.py')
-rw-r--r-- | youtube_dl/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/__init__.py b/youtube_dl/__init__.py index a4769a8ae..ebf4a300f 100644 --- a/youtube_dl/__init__.py +++ b/youtube_dl/__init__.py @@ -618,7 +618,7 @@ def _real_main(argv=None): 'min_filesize': opts.min_filesize, 'max_filesize': opts.max_filesize, 'daterange': date, - 'cachedir': opts.cachedir, + 'cachedir': opts.cachedir if opts.cachedir != 'NONE' else None, 'youtube_print_sig_code': opts.youtube_print_sig_code, }) |