Skip to content

A feature-rich command-line audio/video downloader

Fix bug during subtitle conversion

pukkandan37242e56f22a
diff --git a/yt_dlp/postprocessor/ffmpeg.py b/yt_dlp/postprocessor/ffmpeg.py
index 1d21ffaf2f..be6cc9f096 100644
--- a/yt_dlp/postprocessor/ffmpeg.py
+++ b/yt_dlp/postprocessor/ffmpeg.py
@@ -802,7 +802,7 @@ class FFmpegSubtitlesConvertorPP(FFmpegPostProcessor):
}
info['__files_to_move'][new_file] = replace_extension(
- info['__files_to_move'][old_file], new_ext)
+ info['__files_to_move'][sub['filepath']], new_ext)
return sub_filenames, info