]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
Keep file without any PPs (oops, missed the obvious case)
authorPhilipp Hagemeister <phihag@phihag.de>
Sat, 12 Jan 2013 14:12:28 +0000 (15:12 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Sat, 12 Jan 2013 14:12:28 +0000 (15:12 +0100)
youtube_dl/FileDownloader.py

index f0879a675b5f83ea95f1066c1f8ffcb8fff163eb..51df4c1756dd101755804714dc562f69024b8cde 100644 (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))