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 c5d47cb commit fa048ae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/com/lckp/jproxy/filter/IndexerFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ public void doFilter(ServletRequest request, ServletResponse response, FilterCha
if (count > indexerRequest.getLimit()) {
count = indexerRequest.getLimit();
newXml = XmlUtil.remove(newXml, count);
offset = 0 - count;
if (index > 1) {
offset = offsetList.get(index - 1) - count;
}
}
if (count > 0 || xml == null) {
xml = XmlUtil.merger(xml, newXml);
Expand Down

0 comments on commit fa048ae

Please sign in to comment.