From 1125a55ab540188da77b7416d147094e1efcafe4 Mon Sep 17 00:00:00 2001 From: Elwador <75888166+Elwador@users.noreply.github.com> Date: Sun, 26 May 2024 19:21:46 +0200 Subject: [PATCH] Fix - v1.4.9 crash caused by episode naming --- CRD/Utils/Files/FileNameManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRD/Utils/Files/FileNameManager.cs b/CRD/Utils/Files/FileNameManager.cs index 5649938..5d50abb 100644 --- a/CRD/Utils/Files/FileNameManager.cs +++ b/CRD/Utils/Files/FileNameManager.cs @@ -33,7 +33,7 @@ public class FileNameManager{ } else if (variable.Type == "double"){ string[] parts = replacement.Split(','); string formattedIntegerPart = parts[0].PadLeft(numbers, '0'); - replacement = formattedIntegerPart + "," + parts[1]; + replacement = formattedIntegerPart + (parts.Length > 1 ? "," + parts[1] : ""); } else if (variable.Sanitize){ replacement = CleanupFilename(replacement); }