Class BandcampChannelTabLinkHandlerFactory
java.lang.Object
org.schabi.newpipe.extractor.linkhandler.LinkHandlerFactory
org.schabi.newpipe.extractor.linkhandler.ListLinkHandlerFactory
org.schabi.newpipe.extractor.services.bandcamp.linkHandler.BandcampChannelTabLinkHandlerFactory
-
Method Summary
Modifier and TypeMethodDescriptionString[]Will returns content filter the corresponding extractor can handle like "channels", "videos", "music", etc.static StringgetUrlSuffix(String tab) Get a tab's URL suffix.booleanonAcceptUrl(String url) Methods inherited from class org.schabi.newpipe.extractor.linkhandler.ListLinkHandlerFactory
fromId, fromId, fromQuery, fromQuery, fromUrl, fromUrl, getAvailableSortFilter, getUrl, getUrl, getUrlMethods inherited from class org.schabi.newpipe.extractor.linkhandler.LinkHandlerFactory
acceptUrl
-
Method Details
-
getInstance
-
getUrlSuffix
Get a tab's URL suffix.These URLs don't actually exist on the Bandcamp website, as both albums and tracks are listed on the main page, but redirect to the main page, which is perfect for us as we need a unique URL for each tab.
- Parameters:
tab- the tab value, which must not be null- Returns:
- a URL suffix
- Throws:
UnsupportedTabException- if the tab is not supported
-
getId
- Specified by:
getIdin classLinkHandlerFactory- Throws:
ParsingExceptionUnsupportedOperationException
-
getUrl
public String getUrl(String id, List<String> contentFilter, String sortFilter) throws ParsingException, UnsupportedOperationException - Specified by:
getUrlin classListLinkHandlerFactory- Throws:
ParsingExceptionUnsupportedOperationException
-
onAcceptUrl
- Specified by:
onAcceptUrlin classLinkHandlerFactory- Throws:
ParsingException
-
getAvailableContentFilter
Description copied from class:ListLinkHandlerFactoryWill returns content filter the corresponding extractor can handle like "channels", "videos", "music", etc.- Overrides:
getAvailableContentFilterin classListLinkHandlerFactory- Returns:
- filter that can be applied when building a query for getting a list
-