Class YoutubeChannelLinkHandlerFactory
- java.lang.Object
-
- org.schabi.newpipe.extractor.linkhandler.LinkHandlerFactory
-
- org.schabi.newpipe.extractor.linkhandler.ListLinkHandlerFactory
-
- org.schabi.newpipe.extractor.services.youtube.linkHandler.YoutubeChannelLinkHandlerFactory
-
public final class YoutubeChannelLinkHandlerFactory extends ListLinkHandlerFactory
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getId(java.lang.String url)
static YoutubeChannelLinkHandlerFactory
getInstance()
java.lang.String
getUrl(java.lang.String id, java.util.List<java.lang.String> contentFilters, java.lang.String searchFilter)
Returns the URL to a channel from an ID.boolean
onAcceptUrl(java.lang.String url)
-
Methods inherited from class org.schabi.newpipe.extractor.linkhandler.ListLinkHandlerFactory
fromId, fromId, fromQuery, fromQuery, fromUrl, fromUrl, getAvailableContentFilter, getAvailableSortFilter, getUrl, getUrl, getUrl
-
Methods inherited from class org.schabi.newpipe.extractor.linkhandler.LinkHandlerFactory
acceptUrl
-
-
-
-
Method Detail
-
getInstance
public static YoutubeChannelLinkHandlerFactory getInstance()
-
getUrl
public java.lang.String getUrl(java.lang.String id, java.util.List<java.lang.String> contentFilters, java.lang.String searchFilter) throws ParsingException, java.lang.UnsupportedOperationException
Returns the URL to a channel from an ID.- Specified by:
getUrl
in classListLinkHandlerFactory
- Parameters:
id
- the channel ID including e.g. 'channel/'- Returns:
- the URL to the channel
- Throws:
ParsingException
java.lang.UnsupportedOperationException
-
getId
public java.lang.String getId(java.lang.String url) throws ParsingException, java.lang.UnsupportedOperationException
- Specified by:
getId
in classLinkHandlerFactory
- Throws:
ParsingException
java.lang.UnsupportedOperationException
-
onAcceptUrl
public boolean onAcceptUrl(java.lang.String url)
- Specified by:
onAcceptUrl
in classLinkHandlerFactory
-
-