mirror of https://github.com/Jackett/Jackett
7tor: implement torznab Limit #4901
This commit is contained in:
parent
cf03b6e216
commit
28dbb29513
|
@ -1,6 +1,7 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Specialized;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using AngleSharp.Html.Parser;
|
||||
|
@ -1661,6 +1662,8 @@ namespace Jackett.Common.Indexers
|
|||
OnParseError(results.Content, ex);
|
||||
}
|
||||
|
||||
if (query.Limit > 0)
|
||||
releases = releases.Take(query.Limit).ToList();
|
||||
return releases;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue