Class PeertubeService
- java.lang.Object
-
- org.schabi.newpipe.extractor.StreamingService
-
- org.schabi.newpipe.extractor.services.peertube.PeertubeService
-
public class PeertubeService extends StreamingService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.schabi.newpipe.extractor.StreamingService
StreamingService.LinkType, StreamingService.ServiceInfo
-
-
Constructor Summary
Constructors Constructor Description PeertubeService(int id)PeertubeService(int id, PeertubeInstance instance)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetBaseUrl()ChannelExtractorgetChannelExtractor(ListLinkHandler linkHandler)Must create a new instance of a ChannelExtractor implementation.ListLinkHandlerFactorygetChannelLHFactory()Must return a new instance of an implementation of ListLinkHandlerFactory for channels.ChannelTabExtractorgetChannelTabExtractor(ListLinkHandler linkHandler)Must create a new instance of a ChannelTabExtractor implementation.ListLinkHandlerFactorygetChannelTabLHFactory()Must return a new instance of an implementation of ListLinkHandlerFactory for channel tabs.CommentsExtractorgetCommentsExtractor(ListLinkHandler linkHandler)ListLinkHandlerFactorygetCommentsLHFactory()PeertubeInstancegetInstance()KioskListgetKioskList()Must create a new instance of a KioskList implementation.PlaylistExtractorgetPlaylistExtractor(ListLinkHandler linkHandler)Must crete a new instance of a PlaylistExtractor implementation.ListLinkHandlerFactorygetPlaylistLHFactory()Must return a new instance of an implementation of ListLinkHandlerFactory for playlists.SearchExtractorgetSearchExtractor(SearchQueryHandler queryHandler)Must create a new instance of a SearchExtractor implementation.SearchQueryHandlerFactorygetSearchQHFactory()Must return an instance of an implementation of SearchQueryHandlerFactory.StreamExtractorgetStreamExtractor(LinkHandler linkHandler)Must create a new instance of a StreamExtractor implementation.LinkHandlerFactorygetStreamLHFactory()Must return a new instance of an implementation of LinkHandlerFactory for streams.SubscriptionExtractorgetSubscriptionExtractor()Outdated or obsolete.SuggestionExtractorgetSuggestionExtractor()Must create a new instance of a SuggestionExtractor implementation.voidsetInstance(PeertubeInstance instance)-
Methods inherited from class org.schabi.newpipe.extractor.StreamingService
getChannelExtractor, getChannelExtractor, getChannelTabExtractorFromId, getChannelTabExtractorFromIdAndBaseUrl, getCommentsExtractor, getContentCountry, getFeedExtractor, getLinkTypeByUrl, getLocalization, getPlaylistExtractor, getPlaylistExtractor, getSearchExtractor, getSearchExtractor, getServiceId, getServiceInfo, getStreamExtractor, getSupportedCountries, getSupportedLocalizations, getTimeAgoParser, toString
-
-
-
-
Constructor Detail
-
PeertubeService
public PeertubeService(int id)
-
PeertubeService
public PeertubeService(int id, PeertubeInstance instance)
-
-
Method Detail
-
getStreamLHFactory
public LinkHandlerFactory getStreamLHFactory()
Description copied from class:StreamingServiceMust return a new instance of an implementation of LinkHandlerFactory for streams.- Specified by:
getStreamLHFactoryin classStreamingService- Returns:
- an instance of a LinkHandlerFactory for streams
-
getChannelLHFactory
public ListLinkHandlerFactory getChannelLHFactory()
Description copied from class:StreamingServiceMust return a new instance of an implementation of ListLinkHandlerFactory for channels. If support for channels is not given null must be returned.- Specified by:
getChannelLHFactoryin classStreamingService- Returns:
- an instance of a ListLinkHandlerFactory for channels or null
-
getChannelTabLHFactory
public ListLinkHandlerFactory getChannelTabLHFactory()
Description copied from class:StreamingServiceMust return a new instance of an implementation of ListLinkHandlerFactory for channel tabs. If support for channel tabs is not given null must be returned.- Specified by:
getChannelTabLHFactoryin classStreamingService- Returns:
- an instance of a ListLinkHandlerFactory for channel tabs or null
-
getPlaylistLHFactory
public ListLinkHandlerFactory getPlaylistLHFactory()
Description copied from class:StreamingServiceMust return a new instance of an implementation of ListLinkHandlerFactory for playlists. If support for playlists is not given null must be returned.- Specified by:
getPlaylistLHFactoryin classStreamingService- Returns:
- an instance of a ListLinkHandlerFactory for playlists or null
-
getSearchQHFactory
public SearchQueryHandlerFactory getSearchQHFactory()
Description copied from class:StreamingServiceMust return an instance of an implementation of SearchQueryHandlerFactory.- Specified by:
getSearchQHFactoryin classStreamingService- Returns:
- an instance of a SearchQueryHandlerFactory
-
getCommentsLHFactory
public ListLinkHandlerFactory getCommentsLHFactory()
- Specified by:
getCommentsLHFactoryin classStreamingService
-
getSearchExtractor
public SearchExtractor getSearchExtractor(SearchQueryHandler queryHandler)
Description copied from class:StreamingServiceMust create a new instance of a SearchExtractor implementation.- Specified by:
getSearchExtractorin classStreamingService- Parameters:
queryHandler- specifies the keyword lock for, and the filters which should be applied.- Returns:
- a new SearchExtractor instance
-
getSuggestionExtractor
public SuggestionExtractor getSuggestionExtractor()
Description copied from class:StreamingServiceMust create a new instance of a SuggestionExtractor implementation.- Specified by:
getSuggestionExtractorin classStreamingService- Returns:
- a new SuggestionExtractor instance
-
getSubscriptionExtractor
public SubscriptionExtractor getSubscriptionExtractor()
Description copied from class:StreamingServiceOutdated or obsolete. null can be returned.- Specified by:
getSubscriptionExtractorin classStreamingService- Returns:
- just null
-
getChannelExtractor
public ChannelExtractor getChannelExtractor(ListLinkHandler linkHandler) throws ExtractionException
Description copied from class:StreamingServiceMust create a new instance of a ChannelExtractor implementation.- Specified by:
getChannelExtractorin classStreamingService- Parameters:
linkHandler- is pointing to the channel which should be handled by this new instance.- Returns:
- a new ChannelExtractor
- Throws:
ExtractionException
-
getChannelTabExtractor
public ChannelTabExtractor getChannelTabExtractor(ListLinkHandler linkHandler) throws ExtractionException
Description copied from class:StreamingServiceMust create a new instance of a ChannelTabExtractor implementation.- Specified by:
getChannelTabExtractorin classStreamingService- Parameters:
linkHandler- is pointing to the channel which should be handled by this new instance.- Returns:
- a new ChannelTabExtractor
- Throws:
ExtractionException
-
getPlaylistExtractor
public PlaylistExtractor getPlaylistExtractor(ListLinkHandler linkHandler) throws ExtractionException
Description copied from class:StreamingServiceMust crete a new instance of a PlaylistExtractor implementation.- Specified by:
getPlaylistExtractorin classStreamingService- Parameters:
linkHandler- is pointing to the playlist which should be handled by this new instance.- Returns:
- a new PlaylistExtractor
- Throws:
ExtractionException
-
getStreamExtractor
public StreamExtractor getStreamExtractor(LinkHandler linkHandler) throws ExtractionException
Description copied from class:StreamingServiceMust create a new instance of a StreamExtractor implementation.- Specified by:
getStreamExtractorin classStreamingService- Parameters:
linkHandler- is pointing to the stream which should be handled by this new instance.- Returns:
- a new StreamExtractor
- Throws:
ExtractionException
-
getCommentsExtractor
public CommentsExtractor getCommentsExtractor(ListLinkHandler linkHandler) throws ExtractionException
- Specified by:
getCommentsExtractorin classStreamingService- Throws:
ExtractionException
-
getBaseUrl
public java.lang.String getBaseUrl()
- Specified by:
getBaseUrlin classStreamingService
-
getInstance
public PeertubeInstance getInstance()
-
setInstance
public void setInstance(PeertubeInstance instance)
-
getKioskList
public KioskList getKioskList() throws ExtractionException
Description copied from class:StreamingServiceMust create a new instance of a KioskList implementation.- Specified by:
getKioskListin classStreamingService- Returns:
- a new KioskList instance
- Throws:
ExtractionException
-
-