1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2025-01-17 10:45:49 +02:00

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.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 @@ public Series FindByTvRageId(int tvRageId)
public Series FindByTitle(string title)
{
title = Parser.Parser.CleanSeriesTitle(title);
var tvdbId = _sceneMappingService.GetTvDbId(title);
if (tvdbId.HasValue)
@ -104,7 +106,7 @@ public Series FindByTitle(string title)
return FindByTvdbId(tvdbId.Value);
}
return _seriesRepository.FindByTitle(Parser.Parser.CleanSeriesTitle(title));
return _seriesRepository.FindByTitle(title);
}
public Series FindByTitleInexact(string title)