diff --git a/src/main/java/com/lckp/jproxy/filter/IndexerFilter.java b/src/main/java/com/lckp/jproxy/filter/IndexerFilter.java index bd79af0..6ce2917 100644 --- a/src/main/java/com/lckp/jproxy/filter/IndexerFilter.java +++ b/src/main/java/com/lckp/jproxy/filter/IndexerFilter.java @@ -95,13 +95,13 @@ public void doFilter(ServletRequest request, ServletResponse response, FilterCha updateRequestWrapper(indexerRequest, requestWrapper); String newXml = indexerService.executeNewRequest(requestWrapper); count = XmlUtil.count(newXml); - if (count > 0 || xml == null) { - xml = XmlUtil.merger(xml, newXml); - } // 处理 Prowlarr 分页异常 if (count > indexerRequest.getLimit()) { - xml = XmlUtil.remove(xml, 100); - break; + count = indexerRequest.getLimit(); + newXml = XmlUtil.remove(newXml, count); + } + if (count > 0 || xml == null) { + xml = XmlUtil.merger(xml, newXml); } // 更新参数 offset = offset + count;