Class BandcampStreamLinkHandlerFactory
- java.lang.Object
-
- org.schabi.newpipe.extractor.linkhandler.LinkHandlerFactory
-
- org.schabi.newpipe.extractor.services.bandcamp.linkHandler.BandcampStreamLinkHandlerFactory
-
public final class BandcampStreamLinkHandlerFactory extends LinkHandlerFactory
Tracks don't have standalone ids, they are always in combination with the band id. That's why id = url.
Radio (bandcamp weekly) shows do have ids.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getId(java.lang.String url)
static BandcampStreamLinkHandlerFactory
getInstance()
java.lang.String
getUrl(java.lang.String input)
Clean up urlboolean
onAcceptUrl(java.lang.String url)
Accepts URLs that point to a bandcamp radio show or that are a bandcamp domain and point to a track.
-
-
-
Method Detail
-
getInstance
public static BandcampStreamLinkHandlerFactory getInstance()
-
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
- See Also:
BandcampStreamLinkHandlerFactory
-
getUrl
public java.lang.String getUrl(java.lang.String input) throws ParsingException, java.lang.UnsupportedOperationException
Clean up url- Specified by:
getUrl
in classLinkHandlerFactory
- Throws:
ParsingException
java.lang.UnsupportedOperationException
- See Also:
BandcampStreamLinkHandlerFactory
-
onAcceptUrl
public boolean onAcceptUrl(java.lang.String url) throws ParsingException
Accepts URLs that point to a bandcamp radio show or that are a bandcamp domain and point to a track.- Specified by:
onAcceptUrl
in classLinkHandlerFactory
- Throws:
ParsingException
-
-