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:
parent
57a6e39669
commit
ebe42357c8
@ -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;
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user