From 502abf050d8e37c985352ee287990c185787b8f1 Mon Sep 17 00:00:00 2001 From: LuckyPuppy514 <53246532+LuckyPuppy514@users.noreply.github.com> Date: Mon, 15 Jan 2024 09:34:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=20Prowlarr=20=E5=88=86?= =?UTF-8?q?=E9=A1=B5=20offset?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/lckp/jproxy/filter/IndexerFilter.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/com/lckp/jproxy/filter/IndexerFilter.java b/src/main/java/com/lckp/jproxy/filter/IndexerFilter.java index 1ec1137..2a6be7a 100644 --- a/src/main/java/com/lckp/jproxy/filter/IndexerFilter.java +++ b/src/main/java/com/lckp/jproxy/filter/IndexerFilter.java @@ -99,9 +99,7 @@ public void doFilter(ServletRequest request, ServletResponse response, FilterCha if (count > indexerRequest.getLimit()) { count = indexerRequest.getLimit(); newXml = XmlUtil.remove(newXml, count); - if (index > 1) { - offset = offsetList.get(index - 1) - count; - } + offset = offset - count; } if (count > 0 || xml == null) { xml = XmlUtil.merger(xml, newXml);