Use unpack operator for files to delete

This commit is contained in:
Riteo 2024-11-08 03:52:50 +01:00
parent 4aa3c401d4
commit 1cae3bf46d

View file

@ -696,7 +696,7 @@ def run(self, info):
self.run_ffmpeg_multiple_files(input_files, temp_filename, opts) self.run_ffmpeg_multiple_files(input_files, temp_filename, opts)
os.replace(temp_filename, filename) os.replace(temp_filename, filename)
files_to_delete = [] if self._already_have_subtitle else sub_filenames + list(json_subs.values()) files_to_delete = [] if self._already_have_subtitle else [*sub_filenames, *json_subs.values()]
return files_to_delete, info return files_to_delete, info