From 48a5ad91b32d8bc0b9fad92a26d17bd7913286ac Mon Sep 17 00:00:00 2001 From: Ivandro Jao Date: Mon, 21 Oct 2024 19:36:11 +0100 Subject: [PATCH] Fix variable name in WhisperAudioToText subtitle loading Corrected the input filename variable from srtFileName to vttFileName to ensure the correct subtitle format is processed. This fixes potential misloading issues when handling WebVTT files. Signed-off-by: Ivandro Jao --- src/ui/Forms/AudioToText/WhisperAudioToText.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/Forms/AudioToText/WhisperAudioToText.cs b/src/ui/Forms/AudioToText/WhisperAudioToText.cs index 6d91c847b..b116a5ade 100644 --- a/src/ui/Forms/AudioToText/WhisperAudioToText.cs +++ b/src/ui/Forms/AudioToText/WhisperAudioToText.cs @@ -1049,8 +1049,8 @@ namespace Nikse.SubtitleEdit.Forms.AudioToText } else { - var rawText = FileUtil.ReadAllLinesShared(srtFileName, Encoding.UTF8); - new WebVTT().LoadSubtitle(sub, rawText, srtFileName); + var rawText = FileUtil.ReadAllLinesShared(vttFileName, Encoding.UTF8); + new WebVTT().LoadSubtitle(sub, rawText, vttFileName); outputText?.Add($"Loading result from {vttFileName}{Environment.NewLine}"); }