From e668b5987b7b4727ddd5bf4989ac4b055b463de4 Mon Sep 17 00:00:00 2001 From: Nikolaj Olsson Date: Sat, 20 Jan 2018 13:44:22 +0100 Subject: [PATCH] Use "." separator instread of "_" when generating mkv cmd/batch file names --- src/Logic/CommandLineConvert.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Logic/CommandLineConvert.cs b/src/Logic/CommandLineConvert.cs index a4cbda086..0f330b8bc 100644 --- a/src/Logic/CommandLineConvert.cs +++ b/src/Logic/CommandLineConvert.cs @@ -368,7 +368,7 @@ namespace Nikse.SubtitleEdit.Logic format = Utilities.LoadMatroskaTextSubtitle(track, matroska, ss, sub); string newFileName = fileName; if (tracks.Count > 1) - newFileName = fileName.Insert(fileName.Length - 4, "_" + track.TrackNumber + "_" + track.Language.RemoveChar('?').RemoveChar('!').RemoveChar('*').RemoveChar(',').RemoveChar('/').Trim()); + newFileName = fileName.Insert(fileName.Length - 4, "." + track.TrackNumber + "." + track.Language.RemoveChar('?').RemoveChar('!').RemoveChar('*').RemoveChar(',').RemoveChar('/').Trim()); if (format.GetType() == typeof(AdvancedSubStationAlpha) || format.GetType() == typeof(SubStationAlpha)) { @@ -980,9 +980,9 @@ namespace Nikse.SubtitleEdit.Logic { string s = fileName; if (s.LastIndexOf('.') > 0) - s = s.Insert(s.LastIndexOf('.'), "_" + className); + s = s.Insert(s.LastIndexOf('.'), "." + className); else - s += "_" + className + format.Extension; + s += "." + className + format.Extension; outputFileName = FormatOutputFileNameForBatchConvert(s, sf.Extension, outputFolder, overwrite); File.WriteAllText(outputFileName, newSub.ToText(sf), targetEncoding); }