[SoundCloud] Properly calculate if results have finished

This commit is contained in:
Stypox 2023-08-06 11:38:22 +02:00
parent 485bfbca9d
commit 2947257111
No known key found for this signature in database
GPG Key ID: 4BDF1B40A49FDD23
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ public class SoundcloudSearchExtractor extends SearchExtractor {
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),
getNextPageFromCurrentUrl(page.getUrl(),
currentOffset -> currentOffset + ITEMS_PER_PAGE));