mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2025-04-29 00:10:35 +05:30
[SoundCloud] Properly calculate if results have finished
This commit is contained in:
parent
485bfbca9d
commit
2947257111
@ -93,7 +93,7 @@ public class SoundcloudSearchExtractor extends SearchExtractor {
|
|||||||
throw new ParsingException("Could not parse json response", e);
|
throw new ParsingException("Could not parse json response", e);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (getOffsetFromUrl(page.getUrl()) + ITEMS_PER_PAGE <= totalResults) {
|
if (getOffsetFromUrl(page.getUrl()) + ITEMS_PER_PAGE < totalResults) {
|
||||||
return new InfoItemsPage<>(collectItems(searchCollection),
|
return new InfoItemsPage<>(collectItems(searchCollection),
|
||||||
getNextPageFromCurrentUrl(page.getUrl(),
|
getNextPageFromCurrentUrl(page.getUrl(),
|
||||||
currentOffset -> currentOffset + ITEMS_PER_PAGE));
|
currentOffset -> currentOffset + ITEMS_PER_PAGE));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user