Skip to content

Commit 76c7730

Browse files
committed
searchfilters: Soundcloud give empty page if no more results
1 parent cfa1175 commit 76c7730

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ public InfoItemsPage<InfoItem> getPage(final Page page) throws IOException,
8181
} catch (final JsonParserException e) {
8282
throw new ParsingException("Could not parse json response", e);
8383
}
84+
if (searchCollection.size() == 0) {
85+
return InfoItemsPage.emptyPage(); // no more search results
86+
}
8487

8588
return new InfoItemsPage<>(collectItems(searchCollection),
8689
getNextPageFromCurrentUrl(page.getUrl(),

0 commit comments

Comments
 (0)