From 1cae3bf46d28725e90e0b432ae7475766b3d7b9f Mon Sep 17 00:00:00 2001 From: Riteo Date: Fri, 8 Nov 2024 03:52:50 +0100 Subject: [PATCH] Use unpack operator for files to delete --- yt_dlp/postprocessor/ffmpeg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp/postprocessor/ffmpeg.py b/yt_dlp/postprocessor/ffmpeg.py index af98914b7b..35892e2d34 100644 --- a/yt_dlp/postprocessor/ffmpeg.py +++ b/yt_dlp/postprocessor/ffmpeg.py @@ -696,7 +696,7 @@ def run(self, info): self.run_ffmpeg_multiple_files(input_files, temp_filename, opts) 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