mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-13 20:53:06 +00:00
Update YoutubeDL.py
This commit is contained in:
parent
4f1c02db6d
commit
96e8661dcd
@ -3467,15 +3467,14 @@ class YoutubeDL:
|
||||
return infodict
|
||||
raise
|
||||
|
||||
if pp.PP_NAME = 'SubtitlesConvertor' and self.params.get('keepintermediate', False) == 'ConvertSubs':
|
||||
files_to_delete = []
|
||||
|
||||
if not files_to_delete:
|
||||
return infodict
|
||||
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…
Reference in New Issue
Block a user