From 3e87418c5d87a6419d96d92598c36268ed071c66 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sun, 21 Aug 2011 18:42:00 -0700 Subject: [PATCH] NormalizeTitle will return all number only titles as is. --- NzbDrone.Core/Parser.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/NzbDrone.Core/Parser.cs b/NzbDrone.Core/Parser.cs index f41f5458c..ecc66e8f5 100644 --- a/NzbDrone.Core/Parser.cs +++ b/NzbDrone.Core/Parser.cs @@ -396,9 +396,12 @@ namespace NzbDrone.Core /// 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(); }