public 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.
Constructor and Description |
---|
BandcampStreamLinkHandlerFactory() |
Modifier and Type | Method and Description |
---|---|
String |
getId(String url) |
String |
getUrl(String input)
Clean up url
|
boolean |
onAcceptUrl(String url)
Accepts URLs that point to a bandcamp radio show or that are a bandcamp
domain and point to a track.
|
public String getId(String url) throws ParsingException
getId
in class LinkHandlerFactory
ParsingException
BandcampStreamLinkHandlerFactory
public String getUrl(String input)
getUrl
in class LinkHandlerFactory
BandcampStreamLinkHandlerFactory
public boolean onAcceptUrl(String url) throws ParsingException
onAcceptUrl
in class LinkHandlerFactory
ParsingException