Ignore Season folders like "S01" (S[0-9]+)

This commit is contained in:
Vincent Courcelle
2025-01-05 11:56:58 +04:00
committed by GitHub
parent 3dbbb46e6a
commit 306487560b
+2 -2
View File
@@ -12,7 +12,7 @@ public class TVShowHelper(NodeParameters args)
if (useFolderName)
{
lookupName = FileHelper.GetDirectoryName(filename);
if (Regex.IsMatch(lookupName, "^(Season|Staffel|Saison|Specials)", RegexOptions.IgnoreCase))
if (Regex.IsMatch(lookupName, "^(Season|Staffel|Saison|Specials|S[0-9]+)", RegexOptions.IgnoreCase))
lookupName = FileHelper.GetDirectoryName(FileHelper.GetDirectory(filename));
}
else
@@ -141,4 +141,4 @@ public class TVShowHelper(NodeParameters args)
return (cleanedText, year);
}
}
}