diff --git a/TVRename/TVRename/BullkAddManager.cs b/TVRename/TVRename/BullkAddManager.cs index bf74927f4..ad8b62949 100644 --- a/TVRename/TVRename/BullkAddManager.cs +++ b/TVRename/TVRename/BullkAddManager.cs @@ -85,20 +85,13 @@ private bool HasSeasonFolders(DirectoryInfo di, out DirectoryInfo[] subDirs, out foreach (DirectoryInfo subDir in subDirs) { //TODO - this could make use of the presets to see whether they match - string regex = "^(?" + sw + "\\s*)(?\\d+)$"; Match m = Regex.Match(subDir.Name, regex, RegexOptions.IgnoreCase); if (!m.Success) continue; //We have a match! - if (m.Groups["folderName"].Length > 1) - { - folderFormat = m.Groups["folderName"] + " " + (m.Groups["number"].ToString().StartsWith("0") ? "{Season:2}" : "{Season}"); - } - else - { - folderFormat = m.Groups["folderName"] + (m.Groups["number"].ToString().StartsWith("0") ? "{Season:2}" : "{Season}"); - } + folderFormat = m.Groups["folderName"] + (m.Groups["number"].ToString().StartsWith("0") ? "{Season:2}" : "{Season}"); + Logger.Info("Assuming {0} contains a show because pattern '{1}' is found in subdirectory {2}", di.FullName, folderFormat, subDir.FullName);