mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-09-05 02:31:57 +03:00
Update YoutubeDL.py
This commit is contained in:
@@ -3472,6 +3472,10 @@ class YoutubeDL:
|
|||||||
if self.params.get('keepvideo', False):
|
if self.params.get('keepvideo', False):
|
||||||
for f in files_to_delete:
|
for f in files_to_delete:
|
||||||
infodict['__files_to_move'].setdefault(f, '')
|
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:
|
else:
|
||||||
self._delete_downloaded_files(
|
self._delete_downloaded_files(
|
||||||
*files_to_delete, info=infodict, msg='Deleting original file %s (pass -k to keep)')
|
*files_to_delete, info=infodict, msg='Deleting original file %s (pass -k to keep)')
|
||||||
|
|||||||
Reference in New Issue
Block a user