From ebe42357c859769ffa47b7f937e607026a9d84e5 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Fri, 25 Apr 2014 20:00:44 -0700 Subject: [PATCH] Use clean name when finding by title --- src/NzbDrone.Core/Parser/ParsingService.cs | 1 - src/NzbDrone.Core/Tv/SeriesService.cs | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/NzbDrone.Core/Parser/ParsingService.cs b/src/NzbDrone.Core/Parser/ParsingService.cs index 35f73caf8..ce507912e 100644 --- a/src/NzbDrone.Core/Parser/ParsingService.cs +++ b/src/NzbDrone.Core/Parser/ParsingService.cs @@ -3,7 +3,6 @@ using System.Collections.Generic; using System.IO; using System.Linq; using NLog; -using NzbDrone.Common; using NzbDrone.Common.Disk; using NzbDrone.Core.DataAugmentation.Scene; using NzbDrone.Core.IndexerSearch.Definitions; diff --git a/src/NzbDrone.Core/Tv/SeriesService.cs b/src/NzbDrone.Core/Tv/SeriesService.cs index ed51da640..9de113351 100644 --- a/src/NzbDrone.Core/Tv/SeriesService.cs +++ b/src/NzbDrone.Core/Tv/SeriesService.cs @@ -97,6 +97,8 @@ namespace NzbDrone.Core.Tv public Series FindByTitle(string title) { + title = Parser.Parser.CleanSeriesTitle(title); + var tvdbId = _sceneMappingService.GetTvDbId(title); if (tvdbId.HasValue) @@ -104,7 +106,7 @@ namespace NzbDrone.Core.Tv return FindByTvdbId(tvdbId.Value); } - return _seriesRepository.FindByTitle(Parser.Parser.CleanSeriesTitle(title)); + return _seriesRepository.FindByTitle(title); } public Series FindByTitleInexact(string title)