Add all search types in TorrentRssIndexer

For apps who don't support all categories with normal search, eg. Sonarr
pull/1723/head
Bogdan 1 year ago
parent a522796798
commit 3a4c8db98c

@ -79,7 +79,25 @@ namespace NzbDrone.Core.Indexers.Definitions.TorrentRss
private IndexerCapabilities SetCapabilities()
{
var caps = new IndexerCapabilities();
var caps = new IndexerCapabilities
{
TvSearchParams = new List<TvSearchParam>
{
TvSearchParam.Q
},
MovieSearchParams = new List<MovieSearchParam>
{
MovieSearchParam.Q
},
MusicSearchParams = new List<MusicSearchParam>
{
MusicSearchParam.Q
},
BookSearchParams = new List<BookSearchParam>
{
BookSearchParam.Q
}
};
caps.Categories.AddCategoryMapping(1, NewznabStandardCategory.Other);

@ -12,25 +12,30 @@ namespace NzbDrone.Core.Indexers.Definitions.TorrentRss
public virtual IndexerPageableRequestChain GetSearchRequests(MovieSearchCriteria searchCriteria)
{
return new IndexerPageableRequestChain();
return BuildPageableRssRequests(searchCriteria);
}
public virtual IndexerPageableRequestChain GetSearchRequests(MusicSearchCriteria searchCriteria)
{
return new IndexerPageableRequestChain();
return BuildPageableRssRequests(searchCriteria);
}
public virtual IndexerPageableRequestChain GetSearchRequests(TvSearchCriteria searchCriteria)
{
return new IndexerPageableRequestChain();
return BuildPageableRssRequests(searchCriteria);
}
public virtual IndexerPageableRequestChain GetSearchRequests(BookSearchCriteria searchCriteria)
{
return new IndexerPageableRequestChain();
return BuildPageableRssRequests(searchCriteria);
}
public virtual IndexerPageableRequestChain GetSearchRequests(BasicSearchCriteria searchCriteria)
{
return BuildPageableRssRequests(searchCriteria);
}
private IndexerPageableRequestChain BuildPageableRssRequests(SearchCriteriaBase searchCriteria)
{
var pageableRequests = new IndexerPageableRequestChain();

Loading…
Cancel
Save