Fixed: Newznab requests for anime using season/episode numbers

This commit is contained in:
Mark McDowall 2022-03-19 12:55:45 -07:00
parent e3aa92d09a
commit bb02fc4668
2 changed files with 2 additions and 2 deletions

View File

@ -147,7 +147,7 @@ namespace NzbDrone.Core.Test.IndexerTests.NewznabTests
var pages = results.GetTier(0).Take(2).Select(t => t.First()).ToList();
pages[0].Url.FullUri.Should().Contain("q=Monkey%20Island+100");
pages[1].Url.FullUri.Should().Contain("q=Monkey%20Island+s05e04");
pages[1].Url.FullUri.Should().Contain("q=Monkey%20Island&season=5&ep=4");
}
[Test]

View File

@ -325,7 +325,7 @@ namespace NzbDrone.Core.Indexers.Newznab
if (Settings.AnimeStandardFormatSearch && searchCriteria.SeasonNumber > 0 && searchCriteria.EpisodeNumber > 0)
{
pageableRequests.Add(GetPagedRequests(MaxPages, Settings.AnimeCategories, "search",
string.Format("&q={0}+s{1:00}e{2:00}",
string.Format("&q={0}&season={1}&ep={2}",
NewsnabifyTitle(queryTitle),
searchCriteria.SeasonNumber,
searchCriteria.EpisodeNumber)));