aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/FileDownloader.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-01-12 15:12:28 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2013-01-12 15:12:28 +0100
commit1d16b0c3fe6b12552481a86e55cb9a2edf768f73 (patch)
treebfd4b6a3a882fdef7e4387d79c8a1d9e55aed8a0 /youtube_dl/FileDownloader.py
parent7851b37993ad2cb898ca76e34fade492dddeec59 (diff)
Keep file without any PPs (oops, missed the obvious case)
Diffstat (limited to 'youtube_dl/FileDownloader.py')
-rw-r--r--youtube_dl/FileDownloader.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/FileDownloader.py b/youtube_dl/FileDownloader.py
index f0879a675..51df4c175 100644
--- a/youtube_dl/FileDownloader.py
+++ b/youtube_dl/FileDownloader.py
@@ -545,7 +545,7 @@ class FileDownloader(object):
keep_video = keep_video_wish
except PostProcessingError as e:
self.to_stderr(u'ERROR: ' + e.msg)
- if not keep_video and not self.params.get('keepvideo', False):
+ if keep_video is False and not self.params.get('keepvideo', False):
try:
self.to_stderr(u'Deleting original file %s (pass -k to keep)' % filename)
os.remove(encodeFilename(filename))