mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-24 04:02:36 +01:00
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 <Ivandrofly@gmail.com>
This commit is contained in:
parent
5c9346c32c
commit
48a5ad91b3
@ -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}");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user