Fixed: Searching BTN

This commit is contained in:
ta264 2021-03-15 21:15:56 +00:00
parent 34ff1edd00
commit 76bded0c50
2 changed files with 3 additions and 2 deletions

View file

@ -92,6 +92,7 @@ public IList<ReleaseInfo> ParseResponse(IndexerResponse indexerResponse)
torrentInfo.Container = torrent.Container;
torrentInfo.Codec = torrent.Codec;
torrentInfo.Resolution = torrent.Resolution;
torrentInfo.Category = new List<IndexerCategory> { NewznabStandardCategory.TV };
results.Add(torrentInfo);
}

View file

@ -60,12 +60,12 @@ public IndexerPageableRequestChain GetSearchRequests(TvSearchCriteria searchCrit
var btnOffset = searchCriteria.Offset.GetValueOrDefault();
if (searchCriteria.TvdbId != 0)
if (searchCriteria.TvdbId > 0)
{
parameters.Tvdb = string.Format("{0}", searchCriteria.TvdbId);
}
if (searchCriteria.RId != 0)
if (searchCriteria.RId > 0)
{
parameters.Tvrage = string.Format("{0}", searchCriteria.RId);
}