[SoundCloud] Fix certain playlists showing as empty
This commit is contained in:
parent
7dba6e3891
commit
3be2d19f3a
|
@ -141,6 +141,15 @@ public class SoundcloudPlaylistExtractor extends PlaylistExtractor {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// extract using getPage if no tracks were collected and playlist is not empty
|
||||||
|
if (streamInfoItemsCollector.getItems().isEmpty() && !ids.isEmpty()) {
|
||||||
|
try {
|
||||||
|
return getPage(new Page(ids));
|
||||||
|
} catch (final IOException | ExtractionException e) {
|
||||||
|
return new InfoItemsPage<>(streamInfoItemsCollector, null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return new InfoItemsPage<>(streamInfoItemsCollector, new Page(ids));
|
return new InfoItemsPage<>(streamInfoItemsCollector, new Page(ids));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue