searchfilters: Soundcloud give empty page if no more results
This commit is contained in:
parent
a043cbdc49
commit
17320ef44e
|
@ -92,6 +92,9 @@ public class SoundcloudSearchExtractor extends SearchExtractor {
|
|||
} catch (final JsonParserException e) {
|
||||
throw new ParsingException("Could not parse json response", e);
|
||||
}
|
||||
if (searchCollection.isEmpty()) {
|
||||
return InfoItemsPage.emptyPage(); // no more search results
|
||||
}
|
||||
|
||||
if (getOffsetFromUrl(page.getUrl()) + ITEMS_PER_PAGE < totalResults) {
|
||||
return new InfoItemsPage<>(collectItems(searchCollection),
|
||||
|
|
Loading…
Reference in New Issue