From 022b88ea22896d4ddc22a7d9d1afb6a6d3824914 Mon Sep 17 00:00:00 2001 From: Garfield69 Date: Sat, 23 Mar 2019 09:27:58 +1300 Subject: [PATCH] yts: implement torznab Limit #4901 --- src/Jackett.Common/Indexers/yts.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Jackett.Common/Indexers/yts.cs b/src/Jackett.Common/Indexers/yts.cs index b8d4d39e9..668b424e5 100644 --- a/src/Jackett.Common/Indexers/yts.cs +++ b/src/Jackett.Common/Indexers/yts.cs @@ -236,6 +236,8 @@ namespace Jackett.Common.Indexers OnParseError(response.Content, ex); } + if (query.Limit > 0) + releases = releases.Take(query.Limit).ToList(); return releases; } }