1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-22 07:43:01 +00:00

New: Perform ID based searches for anime if the indexer supports ID searching

Closes #5090
This commit is contained in:
Mark McDowall 2022-11-16 19:02:57 -08:00
parent ba9651b241
commit f9f08cfea2

View file

@ -326,6 +326,11 @@ namespace NzbDrone.Core.Indexers.Newznab
var queryTitles = TextSearchEngine == "raw" ? searchCriteria.SceneTitles : searchCriteria.CleanSceneTitles;
foreach (var queryTitle in queryTitles)
{
AddTvIdPageableRequests(pageableRequests,
Settings.Categories,
searchCriteria,
$"&q={searchCriteria.AbsoluteEpisodeNumber:00}");
pageableRequests.Add(GetPagedRequests(MaxPages,
Settings.AnimeCategories,
"search",
@ -333,6 +338,11 @@ namespace NzbDrone.Core.Indexers.Newznab
if (Settings.AnimeStandardFormatSearch && searchCriteria.SeasonNumber > 0 && searchCriteria.EpisodeNumber > 0)
{
AddTvIdPageableRequests(pageableRequests,
Settings.Categories,
searchCriteria,
$"&season={NewznabifySeasonNumber(searchCriteria.SeasonNumber)}&ep={searchCriteria.EpisodeNumber}");
pageableRequests.Add(GetPagedRequests(MaxPages,
Settings.AnimeCategories,
"tvsearch",