Skip to content

Commit

Permalink
修复 Prowlarr 查询分页问题
Browse files Browse the repository at this point in the history
  • Loading branch information
LuckyPuppy514 authored Jan 15, 2024
1 parent abcb99d commit b472321
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/java/com/lckp/jproxy/filter/IndexerFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b472321

Please sign in to comment.