1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-25 09:18:34 +00:00

Fixed: Prevent anime search with ep/season if not supported

This commit is contained in:
Qstick 2024-02-09 20:10:09 -06:00
parent 6e81517d51
commit 913b845faa

View file

@ -402,7 +402,7 @@ namespace NzbDrone.Core.Indexers.Newznab
searchCriteria.SeasonNumber > 0 && searchCriteria.SeasonNumber > 0 &&
searchCriteria.EpisodeNumber > 0; searchCriteria.EpisodeNumber > 0;
if (includeAnimeStandardFormatSearch) if (includeAnimeStandardFormatSearch && SupportsEpisodeSearch)
{ {
AddTvIdPageableRequests(pageableRequests, AddTvIdPageableRequests(pageableRequests,
Settings.AnimeCategories, Settings.AnimeCategories,
@ -419,7 +419,7 @@ namespace NzbDrone.Core.Indexers.Newznab
"search", "search",
$"&q={NewsnabifyTitle(queryTitle)}+{searchCriteria.AbsoluteEpisodeNumber:00}")); $"&q={NewsnabifyTitle(queryTitle)}+{searchCriteria.AbsoluteEpisodeNumber:00}"));
if (includeAnimeStandardFormatSearch) if (includeAnimeStandardFormatSearch && SupportsEpisodeSearch)
{ {
pageableRequests.Add(GetPagedRequests(MaxPages, pageableRequests.Add(GetPagedRequests(MaxPages,
Settings.AnimeCategories, Settings.AnimeCategories,