Skip to content

Commit

Permalink
修正 Prowlarr 分页 offset
Browse files Browse the repository at this point in the history
  • Loading branch information
LuckyPuppy514 authored Jan 15, 2024
1 parent fa048ae commit 502abf0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/java/com/lckp/jproxy/filter/IndexerFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 502abf0

Please sign in to comment.