mirror of https://github.com/Radarr/Radarr
Use clean name when finding by title
This commit is contained in:
parent
57a6e39669
commit
ebe42357c8
|
@ -3,7 +3,6 @@ using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using NLog;
|
using NLog;
|
||||||
using NzbDrone.Common;
|
|
||||||
using NzbDrone.Common.Disk;
|
using NzbDrone.Common.Disk;
|
||||||
using NzbDrone.Core.DataAugmentation.Scene;
|
using NzbDrone.Core.DataAugmentation.Scene;
|
||||||
using NzbDrone.Core.IndexerSearch.Definitions;
|
using NzbDrone.Core.IndexerSearch.Definitions;
|
||||||
|
|
|
@ -97,6 +97,8 @@ namespace NzbDrone.Core.Tv
|
||||||
|
|
||||||
public Series FindByTitle(string title)
|
public Series FindByTitle(string title)
|
||||||
{
|
{
|
||||||
|
title = Parser.Parser.CleanSeriesTitle(title);
|
||||||
|
|
||||||
var tvdbId = _sceneMappingService.GetTvDbId(title);
|
var tvdbId = _sceneMappingService.GetTvDbId(title);
|
||||||
|
|
||||||
if (tvdbId.HasValue)
|
if (tvdbId.HasValue)
|
||||||
|
@ -104,7 +106,7 @@ namespace NzbDrone.Core.Tv
|
||||||
return FindByTvdbId(tvdbId.Value);
|
return FindByTvdbId(tvdbId.Value);
|
||||||
}
|
}
|
||||||
|
|
||||||
return _seriesRepository.FindByTitle(Parser.Parser.CleanSeriesTitle(title));
|
return _seriesRepository.FindByTitle(title);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Series FindByTitleInexact(string title)
|
public Series FindByTitleInexact(string title)
|
||||||
|
|
Loading…
Reference in New Issue