public abstract class BandcampStreamInfoItemExtractor extends Object implements StreamInfoItemExtractor
Constructor and Description |
---|
BandcampStreamInfoItemExtractor(String uploaderUrl) |
Modifier and Type | Method and Description |
---|---|
StreamType |
getStreamType()
Get the stream type
|
String |
getTextualUploadDate()
The original textual date provided by the service.
|
DateWrapper |
getUploadDate()
Extracts the upload date and time of this item and parses it.
|
String |
getUploaderUrl() |
long |
getViewCount()
Parses the number of views
|
boolean |
isAd()
Check if the stream is an ad.
|
boolean |
isUploaderVerified()
Whether the uploader has been verified by the service's provider.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDuration, getShortDescription, getUploaderAvatarUrl, getUploaderName
getName, getThumbnailUrl, getUrl
public BandcampStreamInfoItemExtractor(String uploaderUrl)
public StreamType getStreamType()
StreamInfoItemExtractor
getStreamType
in interface StreamInfoItemExtractor
public long getViewCount()
StreamInfoItemExtractor
getViewCount
in interface StreamInfoItemExtractor
public String getUploaderUrl()
getUploaderUrl
in interface StreamInfoItemExtractor
@Nullable public String getTextualUploadDate()
StreamInfoItemExtractor
StreamInfoItemExtractor.getUploadDate()
isn't provided by the service, or it fails for some reason.getTextualUploadDate
in interface StreamInfoItemExtractor
null
if not provided.StreamInfoItemExtractor.getUploadDate()
@Nullable public DateWrapper getUploadDate()
StreamInfoItemExtractor
If the service doesn't provide an exact time, an approximation can be returned.
If the service doesn't provide any date at all, then null
should be returned.
getUploadDate
in interface StreamInfoItemExtractor
null
.StreamInfoItemExtractor.getTextualUploadDate()
public boolean isUploaderVerified() throws ParsingException
StreamInfoItemExtractor
false
.isUploaderVerified
in interface StreamInfoItemExtractor
ParsingException
public boolean isAd()
StreamInfoItemExtractor
isAd
in interface StreamInfoItemExtractor
true
if the stream is an ad.