Update YoutubeDL.py

pull/6440/head
NewUserHa 2 years ago committed by GitHub
parent 8729e7b57c
commit 4f1c02db6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -3472,6 +3472,10 @@ class YoutubeDL:
if self.params.get('keepvideo', False):
for f in files_to_delete:
infodict['__files_to_move'].setdefault(f, '')
elif self.params.get('keepsubs', False):
for f in files_to_delete:
if f.endswith('.vtt'):
infodict['__files_to_move'].setdefault(f, '')
else:
self._delete_downloaded_files(
*files_to_delete, info=infodict, msg='Deleting original file %s (pass -k to keep)')

Loading…
Cancel
Save