Fixed REGEX for episode parsing so it would correctly parse shows with a year in the title.

Fixed a config saving issue in the SettingsController.
Added bindings in Central dispatch for SabProvider and HttpProvider
This commit is contained in:
markus101 2011-01-30 17:30:59 -08:00
parent ea77428b1c
commit c40f18e66f
8 changed files with 118 additions and 20 deletions

View file

@ -18,7 +18,7 @@ namespace NzbDrone.Core
private static readonly Regex[] ReportTitleRegex = new[]
{
new Regex(@"(?<title>.+?)?\W(S)?(?<season>\d+)\w(?<episode>\d+)\W(?!\\)", RegexOptions.IgnoreCase | RegexOptions.Compiled)
new Regex(@"(?<title>.+?)?\W(S)?(?<season>\d+)[EeXx](?<episode>\d+)\W(?!\\)", RegexOptions.IgnoreCase | RegexOptions.Compiled)
};
private static readonly Regex NormalizeRegex = new Regex(@"((\s|^)the(\s|$))|((\s|^)and(\s|$))|[^a-z]", RegexOptions.IgnoreCase | RegexOptions.Compiled);