From f49d2338fd95688b9dfe142d94dc01bf8c8b58a5 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sat, 10 Oct 2020 10:24:08 -0700 Subject: [PATCH] New: Search for anime specials without absolute episode numbers by name Closes #1970 --- src/NzbDrone.Core/IndexerSearch/NzbSearchService.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/IndexerSearch/NzbSearchService.cs b/src/NzbDrone.Core/IndexerSearch/NzbSearchService.cs index be5c9b0b8..673a40ce8 100644 --- a/src/NzbDrone.Core/IndexerSearch/NzbSearchService.cs +++ b/src/NzbDrone.Core/IndexerSearch/NzbSearchService.cs @@ -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 }, 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 }, userInvokedSearch, interactiveSearch); }