Class MediaCCCConferenceKiosk
- java.lang.Object
-
- org.schabi.newpipe.extractor.Extractor
-
- org.schabi.newpipe.extractor.ListExtractor<T>
-
- org.schabi.newpipe.extractor.kiosk.KioskExtractor<ChannelInfoItem>
-
- org.schabi.newpipe.extractor.services.media_ccc.extractors.MediaCCCConferenceKiosk
-
public class MediaCCCConferenceKiosk extends KioskExtractor<ChannelInfoItem>
-
-
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.String
KIOSK_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 MediaCCCConferenceKiosk(StreamingService streamingService, ListLinkHandler linkHandler, java.lang.String kioskId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListExtractor.InfoItemsPage<ChannelInfoItem>
getInitialPage()
AInfoItemsPage
corresponding to the initial page where the items are from the initial request and the nextPage relative to it.java.lang.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<ChannelInfoItem>
getPage(Page page)
Get a list of items corresponding to the specific requested page.void
onFetchPage(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
-
MediaCCCConferenceKiosk
public MediaCCCConferenceKiosk(StreamingService streamingService, ListLinkHandler linkHandler, java.lang.String kioskId)
-
-
Method Detail
-
getInitialPage
@Nonnull public ListExtractor.InfoItemsPage<ChannelInfoItem> getInitialPage()
Description copied from class:ListExtractor
AInfoItemsPage
corresponding to the initial page where the items are from the initial request and the nextPage relative to it.- Specified by:
getInitialPage
in classListExtractor<ChannelInfoItem>
- Returns:
- a
ListExtractor.InfoItemsPage
corresponding to the initial page
-
getPage
public ListExtractor.InfoItemsPage<ChannelInfoItem> getPage(Page page)
Description copied from class:ListExtractor
Get a list of items corresponding to the specific requested page.- Specified by:
getPage
in classListExtractor<ChannelInfoItem>
- Parameters:
page
- any page got from the exclusive implementation of the list extractor- Returns:
- a
ListExtractor.InfoItemsPage
corresponding to the requested page - See Also:
ListExtractor.InfoItemsPage.getNextPage()
-
onFetchPage
public void onFetchPage(@Nonnull Downloader downloader) throws java.io.IOException, ExtractionException
Description copied from class:Extractor
Fetch the current page.- Specified by:
onFetchPage
in 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
-
getName
@Nonnull public java.lang.String getName() throws ParsingException
Description copied from class:KioskExtractor
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. In order to get the name of the kiosk in the desired language we have to crawl if from the website.- Specified by:
getName
in classKioskExtractor<ChannelInfoItem>
- Returns:
- the translated version of id
- Throws:
ParsingException
- if the name cannot be extracted
-
-