Implement artist search for newznab and omgwtfnzbs

pull/18/head
Daniel Underwood 8 years ago
parent f7bf03499b
commit ad911edfb1

@ -209,7 +209,13 @@ namespace NzbDrone.Core.Indexers.Newznab
public IndexerPageableRequestChain GetSearchRequests(ArtistSearchCriteria searchCriteria) public IndexerPageableRequestChain GetSearchRequests(ArtistSearchCriteria searchCriteria)
{ {
throw new System.NotImplementedException(); var pageableRequests = new IndexerPageableRequestChain();
AddAudioPageableRequests(pageableRequests, MaxPages, Settings.Categories, searchCriteria,
string.Format("&artist={0}",
searchCriteria.Artist.Name));
return pageableRequests;
} }
private void AddTvIdPageableRequests(IndexerPageableRequestChain chain, int maxPages, IEnumerable<int> categories, SearchCriteriaBase searchCriteria, string parameters) private void AddTvIdPageableRequests(IndexerPageableRequestChain chain, int maxPages, IEnumerable<int> categories, SearchCriteriaBase searchCriteria, string parameters)

@ -103,7 +103,14 @@ namespace NzbDrone.Core.Indexers.Omgwtfnzbs
public IndexerPageableRequestChain GetSearchRequests(ArtistSearchCriteria searchCriteria) public IndexerPageableRequestChain GetSearchRequests(ArtistSearchCriteria searchCriteria)
{ {
throw new System.NotImplementedException(); var pageableRequests = new IndexerPageableRequestChain();
pageableRequests.Add(GetPagedRequests(string.Format("{0}",
searchCriteria.Artist.Name)));
return pageableRequests;
} }
private IEnumerable<IndexerRequest> GetPagedRequests(string query) private IEnumerable<IndexerRequest> GetPagedRequests(string query)

Loading…
Cancel
Save