mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-22 15:56:58 +00:00
New: Perform ID based searches for anime if the indexer supports ID searching
Closes #5090
This commit is contained in:
parent
ba9651b241
commit
f9f08cfea2
1 changed files with 10 additions and 0 deletions
|
@ -326,6 +326,11 @@ namespace NzbDrone.Core.Indexers.Newznab
|
||||||
var queryTitles = TextSearchEngine == "raw" ? searchCriteria.SceneTitles : searchCriteria.CleanSceneTitles;
|
var queryTitles = TextSearchEngine == "raw" ? searchCriteria.SceneTitles : searchCriteria.CleanSceneTitles;
|
||||||
foreach (var queryTitle in queryTitles)
|
foreach (var queryTitle in queryTitles)
|
||||||
{
|
{
|
||||||
|
AddTvIdPageableRequests(pageableRequests,
|
||||||
|
Settings.Categories,
|
||||||
|
searchCriteria,
|
||||||
|
$"&q={searchCriteria.AbsoluteEpisodeNumber:00}");
|
||||||
|
|
||||||
pageableRequests.Add(GetPagedRequests(MaxPages,
|
pageableRequests.Add(GetPagedRequests(MaxPages,
|
||||||
Settings.AnimeCategories,
|
Settings.AnimeCategories,
|
||||||
"search",
|
"search",
|
||||||
|
@ -333,6 +338,11 @@ namespace NzbDrone.Core.Indexers.Newznab
|
||||||
|
|
||||||
if (Settings.AnimeStandardFormatSearch && searchCriteria.SeasonNumber > 0 && searchCriteria.EpisodeNumber > 0)
|
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,
|
pageableRequests.Add(GetPagedRequests(MaxPages,
|
||||||
Settings.AnimeCategories,
|
Settings.AnimeCategories,
|
||||||
"tvsearch",
|
"tvsearch",
|
||||||
|
|
Loading…
Reference in a new issue