Class PeertubeSearchQueryHandlerFactory
- 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.peertube.linkHandler.PeertubeSearchQueryHandlerFactory
-
public final class PeertubeSearchQueryHandlerFactory extends SearchQueryHandlerFactory
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CHANNELS
static java.lang.String
PLAYLISTS
static java.lang.String
SEARCH_ENDPOINT_CHANNELS
static java.lang.String
SEARCH_ENDPOINT_PLAYLISTS
static java.lang.String
SEARCH_ENDPOINT_VIDEOS
static java.lang.String
SEPIA_BASE_URL
static java.lang.String
SEPIA_VIDEOS
static java.lang.String
VIDEOS
-
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 PeertubeSearchQueryHandlerFactory
getInstance()
java.lang.String
getUrl(java.lang.String searchString, java.util.List<java.lang.String> contentFilters, java.lang.String sortFilter)
java.lang.String
getUrl(java.lang.String searchString, java.util.List<java.lang.String> contentFilters, java.lang.String sortFilter, java.lang.String baseUrl)
-
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
-
Methods inherited from class org.schabi.newpipe.extractor.linkhandler.LinkHandlerFactory
acceptUrl
-
-
-
-
Field Detail
-
VIDEOS
public static final java.lang.String VIDEOS
- See Also:
- Constant Field Values
-
SEPIA_VIDEOS
public static final java.lang.String SEPIA_VIDEOS
- See Also:
- Constant Field Values
-
PLAYLISTS
public static final java.lang.String PLAYLISTS
- See Also:
- Constant Field Values
-
CHANNELS
public static final java.lang.String CHANNELS
- See Also:
- Constant Field Values
-
SEPIA_BASE_URL
public static final java.lang.String SEPIA_BASE_URL
- See Also:
- Constant Field Values
-
SEARCH_ENDPOINT_PLAYLISTS
public static final java.lang.String SEARCH_ENDPOINT_PLAYLISTS
- See Also:
- Constant Field Values
-
SEARCH_ENDPOINT_VIDEOS
public static final java.lang.String SEARCH_ENDPOINT_VIDEOS
- See Also:
- Constant Field Values
-
SEARCH_ENDPOINT_CHANNELS
public static final java.lang.String SEARCH_ENDPOINT_CHANNELS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static PeertubeSearchQueryHandlerFactory getInstance()
-
getUrl
public java.lang.String getUrl(java.lang.String searchString, 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
-
getUrl
public java.lang.String getUrl(java.lang.String searchString, java.util.List<java.lang.String> contentFilters, java.lang.String sortFilter, java.lang.String baseUrl) throws ParsingException, java.lang.UnsupportedOperationException
- Overrides:
getUrl
in classListLinkHandlerFactory
- 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
-
-