mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-25 04:33:04 +01:00
Minor rename
This commit is contained in:
parent
d6493d25e5
commit
de837282f6
@ -467,12 +467,12 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
{
|
||||
var fileName = Path.GetFileNameWithoutExtension(_inputVideoFileName);
|
||||
|
||||
var postFixesToRemove = new List<string> { "softsub", "SoftSub", "embed", "Embed", Configuration.Settings.Tools.GenVideoEmbedOutputSuffix };
|
||||
foreach (var postFix in postFixesToRemove)
|
||||
var suffixesToRemove = new List<string> { "softsub", "SoftSub", "embed", "Embed", Configuration.Settings.Tools.GenVideoEmbedOutputSuffix };
|
||||
foreach (var suffix in suffixesToRemove)
|
||||
{
|
||||
fileName = fileName.Replace("." + postFix, string.Empty);
|
||||
fileName = fileName.Replace("_" + postFix, string.Empty);
|
||||
fileName = fileName.Replace("-" + postFix, string.Empty);
|
||||
fileName = fileName.Replace("." + suffix, string.Empty);
|
||||
fileName = fileName.Replace("_" + suffix, string.Empty);
|
||||
fileName = fileName.Replace("-" + suffix, string.Empty);
|
||||
}
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(Configuration.Settings.Tools.GenVideoEmbedOutputSuffix))
|
||||
|
Loading…
Reference in New Issue
Block a user