Use clean name when finding by title

This commit is contained in:
Mark McDowall 2014-04-25 20:00:44 -07:00
parent 57a6e39669
commit ebe42357c8
2 changed files with 3 additions and 2 deletions

View File

@ -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;

View File

@ -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)