public class YoutubeService extends StreamingService
StreamingService.LinkType, StreamingService.ServiceInfo
Constructor and Description |
---|
YoutubeService(int id) |
Modifier and Type | Method and Description |
---|---|
String |
getBaseUrl() |
ChannelExtractor |
getChannelExtractor(ListLinkHandler linkHandler)
Must create a new instance of a ChannelExtractor implementation.
|
ListLinkHandlerFactory |
getChannelLHFactory()
Must return a new instance of an implementation of ListLinkHandlerFactory for channels.
|
CommentsExtractor |
getCommentsExtractor(ListLinkHandler urlIdHandler) |
ListLinkHandlerFactory |
getCommentsLHFactory() |
FeedExtractor |
getFeedExtractor(String channelUrl)
This method decides which strategy will be chosen to fetch the feed.
|
KioskList |
getKioskList()
Must create a new instance of a KioskList implementation.
|
PlaylistExtractor |
getPlaylistExtractor(ListLinkHandler linkHandler)
Must crete a new instance of a PlaylistExtractor implementation.
|
ListLinkHandlerFactory |
getPlaylistLHFactory()
Must return a new instance of an implementation of ListLinkHandlerFactory for playlists.
|
SearchExtractor |
getSearchExtractor(SearchQueryHandler query)
Must create a new instance of a SearchExtractor implementation.
|
SearchQueryHandlerFactory |
getSearchQHFactory()
Must return an instance of an implementation of SearchQueryHandlerFactory.
|
StreamExtractor |
getStreamExtractor(LinkHandler linkHandler)
Must create a new instance of a StreamExtractor implementation.
|
LinkHandlerFactory |
getStreamLHFactory()
Must return a new instance of an implementation of LinkHandlerFactory for streams.
|
SubscriptionExtractor |
getSubscriptionExtractor()
Outdated or obsolete.
|
SuggestionExtractor |
getSuggestionExtractor()
Must create a new instance of a SuggestionExtractor implementation.
|
List<ContentCountry> |
getSupportedCountries()
Returns a list of countries that this service supports.
|
List<Localization> |
getSupportedLocalizations()
Returns a list of localizations that this service supports.
|
getChannelExtractor, getChannelExtractor, getCommentsExtractor, getContentCountry, getLinkTypeByUrl, getLocalization, getPlaylistExtractor, getPlaylistExtractor, getSearchExtractor, getSearchExtractor, getServiceId, getServiceInfo, getStreamExtractor, getTimeAgoParser, toString
public String getBaseUrl()
getBaseUrl
in class StreamingService
public LinkHandlerFactory getStreamLHFactory()
StreamingService
getStreamLHFactory
in class StreamingService
public ListLinkHandlerFactory getChannelLHFactory()
StreamingService
getChannelLHFactory
in class StreamingService
public ListLinkHandlerFactory getPlaylistLHFactory()
StreamingService
getPlaylistLHFactory
in class StreamingService
public SearchQueryHandlerFactory getSearchQHFactory()
StreamingService
getSearchQHFactory
in class StreamingService
public StreamExtractor getStreamExtractor(LinkHandler linkHandler)
StreamingService
getStreamExtractor
in class StreamingService
linkHandler
- is pointing to the stream which should be handled by this new instance.public ChannelExtractor getChannelExtractor(ListLinkHandler linkHandler)
StreamingService
getChannelExtractor
in class StreamingService
linkHandler
- is pointing to the channel which should be handled by this new instance.public PlaylistExtractor getPlaylistExtractor(ListLinkHandler linkHandler)
StreamingService
getPlaylistExtractor
in class StreamingService
linkHandler
- is pointing to the playlist which should be handled by this new instance.public SearchExtractor getSearchExtractor(SearchQueryHandler query)
StreamingService
getSearchExtractor
in class StreamingService
query
- specifies the keyword lock for, and the filters which should be applied.public SuggestionExtractor getSuggestionExtractor()
StreamingService
getSuggestionExtractor
in class StreamingService
public KioskList getKioskList() throws ExtractionException
StreamingService
getKioskList
in class StreamingService
ExtractionException
public SubscriptionExtractor getSubscriptionExtractor()
StreamingService
getSubscriptionExtractor
in class StreamingService
@Nonnull public FeedExtractor getFeedExtractor(String channelUrl) throws ExtractionException
StreamingService
In services which there's no other way to retrieve them, null should be returned.
getFeedExtractor
in class StreamingService
FeedExtractor
instance or null.ExtractionException
public ListLinkHandlerFactory getCommentsLHFactory()
getCommentsLHFactory
in class StreamingService
public CommentsExtractor getCommentsExtractor(ListLinkHandler urlIdHandler) throws ExtractionException
getCommentsExtractor
in class StreamingService
ExtractionException
public List<Localization> getSupportedLocalizations()
StreamingService
getSupportedLocalizations
in class StreamingService
public List<ContentCountry> getSupportedCountries()
StreamingService
getSupportedCountries
in class StreamingService