New: Improve Newznab Searching (Book-Search Caps, ISBN Search)

This commit is contained in:
Qstick
2020-05-17 00:48:41 -04:00
committed by ta264
parent ee43ccf620
commit 3ae3c9dfc1
13 changed files with 52 additions and 43 deletions
@@ -51,7 +51,7 @@ namespace NzbDrone.Core.Test.IndexerTests.NewznabTests
[Test]
public void should_search_by_artist_and_album_if_supported()
{
_capabilities.SupportedAudioSearchParameters = new[] { "q", "author", "book" };
_capabilities.SupportedBookSearchParameters = new[] { "q", "author", "title" };
var results = Subject.GetSearchRequests(_singleAlbumSearchCriteria);
results.GetTier(0).Should().HaveCount(1);
@@ -59,7 +59,7 @@ namespace NzbDrone.Core.Test.IndexerTests.NewznabTests
var page = results.GetAllTiers().First().First();
page.Url.Query.Should().Contain("author=Alien%20Ant%20Farm");
page.Url.Query.Should().Contain("book=TruANT");
page.Url.Query.Should().Contain("title=TruANT");
}
}
}