mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
NormalizeTitle will return all number only titles as is.
This commit is contained in:
parent
66522b8109
commit
3e87418c5d
1 changed files with 5 additions and 2 deletions
|
@ -396,9 +396,12 @@ namespace NzbDrone.Core
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static string NormalizeTitle(string title)
|
public static string NormalizeTitle(string title)
|
||||||
{
|
{
|
||||||
//Todo: Find a better way to do this hack
|
long number = 0;
|
||||||
if (title == "90210" || title == "24")
|
|
||||||
|
//If Title only contains numbers return it as is.
|
||||||
|
if (Int64.TryParse(title, out number))
|
||||||
return title;
|
return title;
|
||||||
|
|
||||||
return NormalizeRegex.Replace(title, String.Empty).ToLower();
|
return NormalizeRegex.Replace(title, String.Empty).ToLower();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue