Fix - v1.4.9 crash caused by episode naming

This commit is contained in:
Elwador 2024-05-26 19:21:46 +02:00
parent 23b925b314
commit 1125a55ab5
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ public class FileNameManager{
} else if (variable.Type == "double"){ } else if (variable.Type == "double"){
string[] parts = replacement.Split(','); string[] parts = replacement.Split(',');
string formattedIntegerPart = parts[0].PadLeft(numbers, '0'); string formattedIntegerPart = parts[0].PadLeft(numbers, '0');
replacement = formattedIntegerPart + "," + parts[1]; replacement = formattedIntegerPart + (parts.Length > 1 ? "," + parts[1] : "");
} else if (variable.Sanitize){ } else if (variable.Sanitize){
replacement = CleanupFilename(replacement); replacement = CleanupFilename(replacement);
} }