mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
torznab: fix limit parameter
This commit is contained in:
@@ -242,6 +242,10 @@ namespace Jackett.Common.Indexers
|
||||
return new IndexerResult(this, new ReleaseInfo[0]);
|
||||
var results = await PerformQuery(query);
|
||||
results = FilterResults(query, results);
|
||||
if (query.Limit > 0)
|
||||
{
|
||||
results = results.Take(query.Limit);
|
||||
}
|
||||
results = results.Select(r =>
|
||||
{
|
||||
r.Origin = this;
|
||||
|
Reference in New Issue
Block a user