Skip to content

Commit 2947257

Browse files
committed
[SoundCloud] Properly calculate if results have finished
1 parent 485bfbc commit 2947257

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

extractor/src/main/java/org/schabi/newpipe/extractor/services/soundcloud/extractors/SoundcloudSearchExtractor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public InfoItemsPage<InfoItem> getPage(final Page page) throws IOException,
9393
throw new ParsingException("Could not parse json response", e);
9494
}
9595

96-
if (getOffsetFromUrl(page.getUrl()) + ITEMS_PER_PAGE <= totalResults) {
96+
if (getOffsetFromUrl(page.getUrl()) + ITEMS_PER_PAGE < totalResults) {
9797
return new InfoItemsPage<>(collectItems(searchCollection),
9898
getNextPageFromCurrentUrl(page.getUrl(),
9999
currentOffset -> currentOffset + ITEMS_PER_PAGE));

0 commit comments

Comments
 (0)