mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-10-02 00:34:37 +02:00
NormalizeTitle will return all number only titles as is.
This commit is contained in:
@@ -396,9 +396,12 @@ namespace NzbDrone.Core
|
||||
/// <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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user