Fixed: Newznab requests for anime using season/episode numbers
This commit is contained in:
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();
|
var pages = results.GetTier(0).Take(2).Select(t => t.First()).ToList();
|
||||||
|
|
||||||
pages[0].Url.FullUri.Should().Contain("q=Monkey%20Island+100");
|
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]
|
[Test]
|
||||||
|
|
|
@ -325,7 +325,7 @@ namespace NzbDrone.Core.Indexers.Newznab
|
||||||
if (Settings.AnimeStandardFormatSearch && searchCriteria.SeasonNumber > 0 && searchCriteria.EpisodeNumber > 0)
|
if (Settings.AnimeStandardFormatSearch && searchCriteria.SeasonNumber > 0 && searchCriteria.EpisodeNumber > 0)
|
||||||
{
|
{
|
||||||
pageableRequests.Add(GetPagedRequests(MaxPages, Settings.AnimeCategories, "search",
|
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),
|
NewsnabifyTitle(queryTitle),
|
||||||
searchCriteria.SeasonNumber,
|
searchCriteria.SeasonNumber,
|
||||||
searchCriteria.EpisodeNumber)));
|
searchCriteria.EpisodeNumber)));
|
||||||
|
|
Loading…
Reference in New Issue