1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-12-01 22:47:59 +00:00

Fix --rm-cache-dir error message

This commit is contained in:
Philipp Hagemeister 2014-09-01 17:11:28 +02:00
parent c9ea760e31
commit 35b1e44567

View file

@ -876,7 +876,7 @@ def _real_main(argv=None):
ydl.to_screen(u'No cache dir specified (Did you combine --no-cache-dir and --rm-cache-dir?)') ydl.to_screen(u'No cache dir specified (Did you combine --no-cache-dir and --rm-cache-dir?)')
else: else:
if ('.cache' not in opts.cachedir) or ('youtube-dl' not in opts.cachedir): if ('.cache' not in opts.cachedir) or ('youtube-dl' not in opts.cachedir):
ydl.to_screen(u'Not removing directory %s - this does not look like a cache dir') ydl.to_screen(u'Not removing directory %s - this does not look like a cache dir' % opts.cachedir)
retcode = 141 retcode = 141
else: else:
ydl.to_screen( ydl.to_screen(