public class BandcampFeaturedExtractor extends KioskExtractor<PlaylistInfoItem>
ListExtractor.InfoItemsPage<T extends InfoItem>
Modifier and Type | Field and Description |
---|---|
static String |
FEATURED_API_URL |
static String |
KIOSK_FEATURED |
static String |
MORE_FEATURED_API_URL |
ITEM_COUNT_INFINITE, ITEM_COUNT_MORE_THAN_100, ITEM_COUNT_UNKNOWN
Constructor and Description |
---|
BandcampFeaturedExtractor(StreamingService streamingService,
ListLinkHandler listLinkHandler,
String kioskId) |
Modifier and Type | Method and Description |
---|---|
ListExtractor.InfoItemsPage<PlaylistInfoItem> |
getInitialPage()
A
InfoItemsPage corresponding to the initial page
where the items are from the initial request and the nextPage relative to it. |
String |
getName()
Id should be the name of the kiosk, tho Id is used for identifying it in the frontend,
so id should be kept in english.
|
ListExtractor.InfoItemsPage<PlaylistInfoItem> |
getPage(Page page)
Get a list of items corresponding to the specific requested page.
|
void |
onFetchPage(Downloader downloader)
Fetch the current page.
|
getId
getLinkHandler
assertPageFetched, fetchPage, forceContentCountry, forceLocalization, getBaseUrl, getDownloader, getExtractorContentCountry, getExtractorLocalization, getOriginalUrl, getService, getServiceId, getTimeAgoParser, getUrl, isPageFetched
public static final String KIOSK_FEATURED
public static final String FEATURED_API_URL
public static final String MORE_FEATURED_API_URL
public BandcampFeaturedExtractor(StreamingService streamingService, ListLinkHandler listLinkHandler, String kioskId)
public void onFetchPage(@Nonnull Downloader downloader) throws IOException, ExtractionException
Extractor
onFetchPage
in class Extractor
downloader
- the downloader to useIOException
- if the page can not be loadedExtractionException
- if the pages content is not understood@Nonnull public String getName() throws ParsingException
KioskExtractor
getName
in class KioskExtractor<PlaylistInfoItem>
ParsingException
- if the name cannot be extracted@Nonnull public ListExtractor.InfoItemsPage<PlaylistInfoItem> getInitialPage() throws IOException, ExtractionException
ListExtractor
InfoItemsPage
corresponding to the initial page
where the items are from the initial request and the nextPage relative to it.getInitialPage
in class ListExtractor<PlaylistInfoItem>
ListExtractor.InfoItemsPage
corresponding to the initial pageIOException
ExtractionException
public ListExtractor.InfoItemsPage<PlaylistInfoItem> getPage(Page page) throws IOException, ExtractionException
ListExtractor
getPage
in class ListExtractor<PlaylistInfoItem>
page
- any page got from the exclusive implementation of the list extractorListExtractor.InfoItemsPage
corresponding to the requested pageIOException
ExtractionException
ListExtractor.InfoItemsPage.getNextPage()