mirror of
https://github.com/Prowlarr/Prowlarr
synced 2026-04-22 12:50:48 +02:00
Fixed: (HDBits) Not parsing the search term for TV (#444)
* Fixing HDBits not parsing the search term * remove debug vars * Handle TVDB Properly
This commit is contained in:
parent
368e0755a0
commit
b513fac2f7
1 changed files with 2 additions and 3 deletions
|
|
@ -78,19 +78,18 @@ public IndexerPageableRequestChain GetSearchRequests(TvSearchCriteria searchCrit
|
|||
{
|
||||
var pageableRequests = new IndexerPageableRequestChain();
|
||||
var query = new TorrentQuery();
|
||||
var tvdbId = searchCriteria.TvdbId.GetValueOrDefault(0);
|
||||
|
||||
if (searchCriteria.Categories?.Length > 0)
|
||||
{
|
||||
query.Category = Capabilities.Categories.MapTorznabCapsToTrackers(searchCriteria.Categories).Select(int.Parse).ToArray();
|
||||
}
|
||||
|
||||
if (searchCriteria.TvdbId == 0 && searchCriteria.SearchTerm.IsNotNullOrWhiteSpace())
|
||||
if (tvdbId == 0 && searchCriteria.SearchTerm.IsNotNullOrWhiteSpace())
|
||||
{
|
||||
query.Search = searchCriteria.SanitizedTvSearchString;
|
||||
}
|
||||
|
||||
var tvdbId = searchCriteria.TvdbId;
|
||||
|
||||
if (tvdbId != 0)
|
||||
{
|
||||
query.TvdbInfo = query.TvdbInfo ?? new TvdbInfo();
|
||||
|
|
|
|||
Loading…
Reference in a new issue