public interface StreamInfoItemExtractor extends InfoItemExtractor
Modifier and Type | Method and Description |
---|---|
long |
getDuration()
Get the stream duration in seconds
|
default String |
getShortDescription()
Get the video's short 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 |
getUploaderAvatarUrl()
Get the uploader's avatar
|
String |
getUploaderName()
Get the uploader name
|
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.
|
getName, getThumbnailUrl, getUrl
StreamType getStreamType() throws ParsingException
ParsingException
- thrown if there is an error in the extractionboolean isAd() throws ParsingException
true
if the stream is an ad.ParsingException
- thrown if there is an error in the extractionlong getDuration() throws ParsingException
ParsingException
- thrown if there is an error in the extractionlong getViewCount() throws ParsingException
ParsingException
- thrown if there is an error in the extractionString getUploaderName() throws ParsingException
ParsingException
- if parsing failsString getUploaderUrl() throws ParsingException
ParsingException
@Nullable String getUploaderAvatarUrl() throws ParsingException
null
if not provided by the service.ParsingException
- if there is an error in the extractionboolean isUploaderVerified() throws ParsingException
false
.ParsingException
@Nullable String getTextualUploadDate() throws ParsingException
getUploadDate()
isn't provided by the service, or it fails for some reason.null
if not provided.ParsingException
- if there is an error in the extractiongetUploadDate()
@Nullable DateWrapper getUploadDate() throws ParsingException
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.
null
.ParsingException
- if there is an error in the extraction
or the extracted date couldn't be parsed.getTextualUploadDate()
@Nullable default String getShortDescription() throws ParsingException
null
if not provided by the service.ParsingException
- if there is an error in the extraction