Fixed: Newznab requests for anime using season/episode numbers

pull/4961/head
Mark McDowall 3 years ago
parent e3aa92d09a
commit bb02fc4668

@ -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]

@ -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)));

Loading…
Cancel
Save