public class PeertubeChannelExtractor extends ChannelExtractor
ListExtractor.InfoItemsPage<T extends InfoItem>
UNKNOWN_SUBSCRIBER_COUNT
ITEM_COUNT_INFINITE, ITEM_COUNT_MORE_THAN_100, ITEM_COUNT_UNKNOWN
Constructor and Description |
---|
PeertubeChannelExtractor(StreamingService service,
ListLinkHandler linkHandler) |
Modifier and Type | Method and Description |
---|---|
String |
getAvatarUrl() |
String |
getBannerUrl() |
String |
getDescription() |
String |
getFeedUrl() |
ListExtractor.InfoItemsPage<StreamInfoItem> |
getInitialPage()
A
InfoItemsPage corresponding to the initial page
where the items are from the initial request and the nextPage relative to it. |
String |
getName()
Get the name
|
ListExtractor.InfoItemsPage<StreamInfoItem> |
getPage(Page page)
Get a list of items corresponding to the specific requested page.
|
String |
getParentChannelAvatarUrl() |
String |
getParentChannelName() |
String |
getParentChannelUrl() |
long |
getSubscriberCount() |
boolean |
isVerified() |
void |
onFetchPage(Downloader downloader)
Fetch the current page.
|
getLinkHandler
assertPageFetched, fetchPage, forceContentCountry, forceLocalization, getBaseUrl, getDownloader, getExtractorContentCountry, getExtractorLocalization, getId, getOriginalUrl, getService, getServiceId, getTimeAgoParser, getUrl, isPageFetched
public PeertubeChannelExtractor(StreamingService service, ListLinkHandler linkHandler) throws ParsingException
ParsingException
public String getAvatarUrl()
getAvatarUrl
in class ChannelExtractor
public String getBannerUrl()
getBannerUrl
in class ChannelExtractor
public String getFeedUrl() throws ParsingException
getFeedUrl
in class ChannelExtractor
ParsingException
public long getSubscriberCount()
getSubscriberCount
in class ChannelExtractor
public String getDescription()
getDescription
in class ChannelExtractor
public String getParentChannelName() throws ParsingException
getParentChannelName
in class ChannelExtractor
ParsingException
public String getParentChannelUrl() throws ParsingException
getParentChannelUrl
in class ChannelExtractor
ParsingException
public String getParentChannelAvatarUrl()
getParentChannelAvatarUrl
in class ChannelExtractor
public boolean isVerified() throws ParsingException
isVerified
in class ChannelExtractor
ParsingException
@Nonnull public ListExtractor.InfoItemsPage<StreamInfoItem> 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<StreamInfoItem>
ListExtractor.InfoItemsPage
corresponding to the initial pageIOException
ExtractionException
public ListExtractor.InfoItemsPage<StreamInfoItem> getPage(Page page) throws IOException, ExtractionException
ListExtractor
getPage
in class ListExtractor<StreamInfoItem>
page
- any page got from the exclusive implementation of the list extractorListExtractor.InfoItemsPage
corresponding to the requested pageIOException
ExtractionException
ListExtractor.InfoItemsPage.getNextPage()
public void onFetchPage(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
Extractor
getName
in class Extractor
ParsingException
- if the name cannot be extracted