Skip to content

Commit

Permalink
Fix wrong timecode format.
Browse files Browse the repository at this point in the history
  • Loading branch information
azhuge233 committed Dec 20, 2023
1 parent c0e3353 commit 0b04d4b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ConsoleWhisper/Module/FileHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ internal static class FileHelper {
}

internal static async Task AddText(FileStream fs, TimeSpan value) {
byte[] info = encoder.GetBytes(value.ToString("G"));
byte[] info = encoder.GetBytes(value.ToString(@"hh\:mm\:ss\,fff"));
await fs.WriteAsync(info);
}
#endregion
Expand Down
4 changes: 2 additions & 2 deletions ConsoleWhisper/Module/WhisperHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ internal class WhisperHelper {
await FileHelper.AddText(transcriptFileStream, result.Start);
await FileHelper.AddText(transcriptFileStream, " --> ");
await FileHelper.AddText(transcriptFileStream, result.End);
await FileHelper.AddText(transcriptFileStream, "\n");
await FileHelper.AddText(transcriptFileStream, Environment.NewLine);
await FileHelper.AddText(transcriptFileStream, result.Text);
await FileHelper.AddText(transcriptFileStream, "\n\n");
await FileHelper.AddText(transcriptFileStream, $"{Environment.NewLine}{Environment.NewLine}");
}

Output.Info("Done.");
Expand Down

0 comments on commit 0b04d4b

Please sign in to comment.