7tor: implement torznab Limit #4901

This commit is contained in:
Garfield69 2019-03-23 11:34:38 +13:00
parent cf03b6e216
commit 28dbb29513
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}
}