mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-12 14:26:49 +01:00
Merge remote-tracking branch 'joksnet/not_keep_video_message'
This commit is contained in:
commit
f03b88b3fb
@ -552,7 +552,7 @@ def post_process(self, filename, ie_info):
|
|||||||
self.to_stderr(u'ERROR: ' + e.msg)
|
self.to_stderr(u'ERROR: ' + e.msg)
|
||||||
if keep_video is False and not self.params.get('keepvideo', False):
|
if keep_video is False and not self.params.get('keepvideo', False):
|
||||||
try:
|
try:
|
||||||
self.to_stderr(u'Deleting original file %s (pass -k to keep)' % filename)
|
self.to_screen(u'Deleting original file %s (pass -k to keep)' % filename)
|
||||||
os.remove(encodeFilename(filename))
|
os.remove(encodeFilename(filename))
|
||||||
except (IOError, OSError):
|
except (IOError, OSError):
|
||||||
self.to_stderr(u'WARNING: Unable to remove downloaded video file')
|
self.to_stderr(u'WARNING: Unable to remove downloaded video file')
|
||||||
|
Loading…
Reference in New Issue
Block a user