mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Added name + year lookups
New: Support series lookup when year has been appended to the release name
This commit is contained in:
@@ -68,15 +68,22 @@ namespace NzbDrone.Core.Parser
|
||||
|
||||
public Series GetSeries(string title)
|
||||
{
|
||||
var searchTitle = title;
|
||||
var parsedEpisodeInfo = Parser.ParseTitle(title);
|
||||
|
||||
if (parsedEpisodeInfo != null)
|
||||
if (parsedEpisodeInfo == null)
|
||||
{
|
||||
searchTitle = parsedEpisodeInfo.SeriesTitle;
|
||||
return _seriesService.FindByTitle(title);
|
||||
}
|
||||
|
||||
return _seriesService.FindByTitle(searchTitle);
|
||||
var series = _seriesService.FindByTitle(parsedEpisodeInfo.SeriesTitle);
|
||||
|
||||
if (series == null)
|
||||
{
|
||||
series = _seriesService.FindByTitle(parsedEpisodeInfo.SeriesTitleInfo.TitleWithoutYear,
|
||||
parsedEpisodeInfo.SeriesTitleInfo.Year);
|
||||
}
|
||||
|
||||
return series;
|
||||
}
|
||||
|
||||
public RemoteEpisode Map(ParsedEpisodeInfo parsedEpisodeInfo, int tvRageId, SearchCriteriaBase searchCriteria = null)
|
||||
|
Reference in New Issue
Block a user