mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-12 11:15:43 +02:00
NormalizeTitle will return all number only titles as is.
This commit is contained in:
parent
66522b8109
commit
3e87418c5d
@ -396,9 +396,12 @@ public static LanguageType ParseLanguage(string title)
|
||||
/// <returns></returns>
|
||||
public static string NormalizeTitle(string title)
|
||||
{
|
||||
//Todo: Find a better way to do this hack
|
||||
if (title == "90210" || title == "24")
|
||||
long number = 0;
|
||||
|
||||
//If Title only contains numbers return it as is.
|
||||
if (Int64.TryParse(title, out number))
|
||||
return title;
|
||||
|
||||
return NormalizeRegex.Replace(title, String.Empty).ToLower();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user