projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7851b37
)
Keep file without any PPs (oops, missed the obvious case)
author
Philipp Hagemeister
<phihag@phihag.de>
Sat, 12 Jan 2013 14:12:28 +0000
(15:12 +0100)
committer
Philipp Hagemeister
<phihag@phihag.de>
Sat, 12 Jan 2013 14:12:28 +0000
(15:12 +0100)
youtube_dl/FileDownloader.py
patch
|
blob
|
history
diff --git
a/youtube_dl/FileDownloader.py
b/youtube_dl/FileDownloader.py
index f0879a675b5f83ea95f1066c1f8ffcb8fff163eb..51df4c1756dd101755804714dc562f69024b8cde 100644
(file)
--- 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))