mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2025-04-28 07:50:34 +05:30
Apply review
This commit is contained in:
parent
d663be5a78
commit
705f6c6e33
@ -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");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user