mirror of
https://github.com/TeamNewPipe/NewPipeExtractor
synced 2025-08-30 22:05:18 +00:00
Apply review
This commit is contained in:
@@ -82,14 +82,13 @@ public class BandcampFeaturedExtractor extends KioskExtractor<PlaylistInfoItem>
|
|||||||
|
|
||||||
final JsonObject lastFeaturedStory = featuredStories.getObject(featuredStories.size() - 1);
|
final JsonObject lastFeaturedStory = featuredStories.getObject(featuredStories.size() - 1);
|
||||||
|
|
||||||
return new InfoItemsPage<>(c, makeNextPage(lastFeaturedStory));
|
return new InfoItemsPage<>(c, getNextPageFrom(lastFeaturedStory));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The query for more featured stories needs parameters from the last featured
|
* Next Page can be generated from metadata of last featured story
|
||||||
* story.
|
|
||||||
*/
|
*/
|
||||||
private Page makeNextPage(JsonObject lastFeaturedStory) {
|
private Page getNextPageFrom(JsonObject lastFeaturedStory) {
|
||||||
final long lastStoryDate = lastFeaturedStory.getLong("story_date");
|
final long lastStoryDate = lastFeaturedStory.getLong("story_date");
|
||||||
final long lastStoryId = lastFeaturedStory.getLong("ntid");
|
final long lastStoryId = lastFeaturedStory.getLong("ntid");
|
||||||
final String lastStoryType = lastFeaturedStory.getString("story_type");
|
final String lastStoryType = lastFeaturedStory.getString("story_type");
|
||||||
|
Reference in New Issue
Block a user