mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-09-06 02:49:35 +02:00
Keep file without any PPs (oops, missed the obvious case)
This commit is contained in:
parent
7851b37993
commit
1d16b0c3fe
@ -545,7 +545,7 @@ def post_process(self, filename, ie_info):
|
||||
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))
|
||||
|
Loading…
Reference in New Issue
Block a user