New: Search for anime specials without absolute episode numbers by name

Closes #1970
This commit is contained in:
Mark McDowall 2020-10-10 10:24:08 -07:00
parent 164f46e4c0
commit f49d2338fd
1 changed files with 10 additions and 1 deletions

View File

@ -70,14 +70,23 @@ namespace NzbDrone.Core.IndexerSearch
return SearchDaily(series, episode, userInvokedSearch, interactiveSearch);
}
if (series.SeriesType == SeriesTypes.Anime)
{
if (episode.SeasonNumber == 0 &&
episode.SceneAbsoluteEpisodeNumber == null &&
episode.AbsoluteEpisodeNumber == null)
{
// Search for special episodes in season 0 that don't have absolute episode numbers
return SearchSpecial(series, new List<Episode> { episode }, userInvokedSearch, interactiveSearch);
}
return SearchAnime(series, episode, userInvokedSearch, interactiveSearch);
}
if (episode.SeasonNumber == 0)
{
// search for special episodes in season 0
// Search for special episodes in season 0
return SearchSpecial(series, new List<Episode> { episode }, userInvokedSearch, interactiveSearch);
}