1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-06-03 02:49:28 +00:00

Keep file without any PPs (oops, missed the obvious case)

This commit is contained in:
Philipp Hagemeister 2013-01-12 15:12:28 +01:00
parent 7851b37993
commit 1d16b0c3fe

View file

@ -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))