Class MediaCCCRecentKiosk
- java.lang.Object
-
- org.schabi.newpipe.extractor.Extractor
-
- org.schabi.newpipe.extractor.ListExtractor<T>
-
- org.schabi.newpipe.extractor.kiosk.KioskExtractor<StreamInfoItem>
-
- org.schabi.newpipe.extractor.services.media_ccc.extractors.MediaCCCRecentKiosk
-
public class MediaCCCRecentKiosk extends KioskExtractor<StreamInfoItem>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.schabi.newpipe.extractor.ListExtractor
ListExtractor.InfoItemsPage<T extends InfoItem>
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringKIOSK_ID-
Fields inherited from class org.schabi.newpipe.extractor.ListExtractor
ITEM_COUNT_INFINITE, ITEM_COUNT_MORE_THAN_100, ITEM_COUNT_UNKNOWN
-
-
Constructor Summary
Constructors Constructor Description MediaCCCRecentKiosk(StreamingService streamingService, ListLinkHandler linkHandler, java.lang.String kioskId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListExtractor.InfoItemsPage<StreamInfoItem>getInitialPage()AInfoItemsPagecorresponding to the initial page where the items are from the initial request and the nextPage relative to it.java.lang.StringgetName()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<StreamInfoItem>getPage(Page page)Get a list of items corresponding to the specific requested page.voidonFetchPage(Downloader downloader)Fetch the current page.-
Methods inherited from class org.schabi.newpipe.extractor.kiosk.KioskExtractor
getId
-
Methods inherited from class org.schabi.newpipe.extractor.ListExtractor
getLinkHandler
-
Methods inherited from class org.schabi.newpipe.extractor.Extractor
assertPageFetched, fetchPage, forceContentCountry, forceLocalization, getBaseUrl, getDownloader, getExtractorContentCountry, getExtractorLocalization, getOriginalUrl, getService, getServiceId, getTimeAgoParser, getUrl, isPageFetched
-
-
-
-
Field Detail
-
KIOSK_ID
public static final java.lang.String KIOSK_ID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MediaCCCRecentKiosk
public MediaCCCRecentKiosk(StreamingService streamingService, ListLinkHandler linkHandler, java.lang.String kioskId)
-
-
Method Detail
-
onFetchPage
public void onFetchPage(@Nonnull Downloader downloader) throws java.io.IOException, ExtractionExceptionDescription copied from class:ExtractorFetch the current page.- Specified by:
onFetchPagein classExtractor- Parameters:
downloader- the downloader to use- Throws:
java.io.IOException- if the page can not be loadedExtractionException- if the pages content is not understood
-
getInitialPage
@Nonnull public ListExtractor.InfoItemsPage<StreamInfoItem> getInitialPage() throws java.io.IOException, ExtractionException
Description copied from class:ListExtractorAInfoItemsPagecorresponding to the initial page where the items are from the initial request and the nextPage relative to it.- Specified by:
getInitialPagein classListExtractor<StreamInfoItem>- Returns:
- a
ListExtractor.InfoItemsPagecorresponding to the initial page - Throws:
java.io.IOExceptionExtractionException
-
getPage
public ListExtractor.InfoItemsPage<StreamInfoItem> getPage(Page page) throws java.io.IOException, ExtractionException
Description copied from class:ListExtractorGet a list of items corresponding to the specific requested page.- Specified by:
getPagein classListExtractor<StreamInfoItem>- Parameters:
page- any page got from the exclusive implementation of the list extractor- Returns:
- a
ListExtractor.InfoItemsPagecorresponding to the requested page - Throws:
java.io.IOExceptionExtractionException- See Also:
ListExtractor.InfoItemsPage.getNextPage()
-
getName
@Nonnull public java.lang.String getName() throws ParsingExceptionDescription copied from class:KioskExtractorId should be the name of the kiosk, tho Id is used for identifying it in the frontend, so id should be kept in english. In order to get the name of the kiosk in the desired language we have to crawl if from the website.- Specified by:
getNamein classKioskExtractor<StreamInfoItem>- Returns:
- the translated version of id
- Throws:
ParsingException- if the name cannot be extracted
-
-