mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Use clean name when finding by title
This commit is contained in:
@@ -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;
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user