Class YoutubeSearchQueryHandlerFactory
- java.lang.Object
-
- org.schabi.newpipe.extractor.linkhandler.LinkHandlerFactory
-
- org.schabi.newpipe.extractor.linkhandler.ListLinkHandlerFactory
-
- org.schabi.newpipe.extractor.linkhandler.SearchQueryHandlerFactory
-
- org.schabi.newpipe.extractor.services.youtube.linkHandler.YoutubeSearchQueryHandlerFactory
-
public final class YoutubeSearchQueryHandlerFactory extends SearchQueryHandlerFactory
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ALL
static java.lang.String
CHANNELS
static java.lang.String
MUSIC_ALBUMS
static java.lang.String
MUSIC_ARTISTS
static java.lang.String
MUSIC_PLAYLISTS
static java.lang.String
MUSIC_SONGS
static java.lang.String
MUSIC_VIDEOS
static java.lang.String
PLAYLISTS
static java.lang.String
VIDEOS
-
Constructor Summary
Constructors Constructor Description YoutubeSearchQueryHandlerFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]
getAvailableContentFilter()
Will returns content filter the corresponding extractor can handle like "channels", "videos", "music", etc.static YoutubeSearchQueryHandlerFactory
getInstance()
static java.lang.String
getSearchParameter(java.lang.String contentFilter)
java.lang.String
getUrl(java.lang.String searchString, java.util.List<java.lang.String> contentFilters, java.lang.String sortFilter)
-
Methods inherited from class org.schabi.newpipe.extractor.linkhandler.SearchQueryHandlerFactory
fromQuery, fromQuery, getId, getSearchString, onAcceptUrl
-
Methods inherited from class org.schabi.newpipe.extractor.linkhandler.ListLinkHandlerFactory
fromId, fromId, fromQuery, fromUrl, fromUrl, getAvailableSortFilter, getUrl, getUrl, getUrl
-
Methods inherited from class org.schabi.newpipe.extractor.linkhandler.LinkHandlerFactory
acceptUrl
-
-
-
-
Field Detail
-
ALL
public static final java.lang.String ALL
- See Also:
- Constant Field Values
-
VIDEOS
public static final java.lang.String VIDEOS
- See Also:
- Constant Field Values
-
CHANNELS
public static final java.lang.String CHANNELS
- See Also:
- Constant Field Values
-
PLAYLISTS
public static final java.lang.String PLAYLISTS
- See Also:
- Constant Field Values
-
MUSIC_SONGS
public static final java.lang.String MUSIC_SONGS
- See Also:
- Constant Field Values
-
MUSIC_VIDEOS
public static final java.lang.String MUSIC_VIDEOS
- See Also:
- Constant Field Values
-
MUSIC_ALBUMS
public static final java.lang.String MUSIC_ALBUMS
- See Also:
- Constant Field Values
-
MUSIC_PLAYLISTS
public static final java.lang.String MUSIC_PLAYLISTS
- See Also:
- Constant Field Values
-
MUSIC_ARTISTS
public static final java.lang.String MUSIC_ARTISTS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
@Nonnull public static YoutubeSearchQueryHandlerFactory getInstance()
-
getUrl
public java.lang.String getUrl(java.lang.String searchString, @Nonnull java.util.List<java.lang.String> contentFilters, java.lang.String sortFilter) throws ParsingException, java.lang.UnsupportedOperationException
- Specified by:
getUrl
in classSearchQueryHandlerFactory
- Throws:
ParsingException
java.lang.UnsupportedOperationException
-
getAvailableContentFilter
public java.lang.String[] getAvailableContentFilter()
Description copied from class:ListLinkHandlerFactory
Will returns content filter the corresponding extractor can handle like "channels", "videos", "music", etc.- Overrides:
getAvailableContentFilter
in classListLinkHandlerFactory
- Returns:
- filter that can be applied when building a query for getting a list
-
getSearchParameter
@Nonnull public static java.lang.String getSearchParameter(java.lang.String contentFilter)
-
-