public class BandcampRadioStreamExtractor extends BandcampStreamExtractor
StreamExtractor.Privacy
NO_AGE_LIMIT, UNKNOWN_SUBSCRIBER_COUNT
Constructor and Description |
---|
BandcampRadioStreamExtractor(StreamingService service,
LinkHandler linkHandler) |
Modifier and Type | Method and Description |
---|---|
List<AudioStream> |
getAudioStreams()
This should return a list of available
AudioStream s. |
String |
getCategory()
The name of the category of the stream.
|
Description |
getDescription()
This is the stream description.
|
long |
getLength()
This should return the length of a video in seconds.
|
String |
getLicence()
The name of the licence of the stream.
|
String |
getName()
Get the name
|
PlaylistInfoItemsCollector |
getRelatedItems()
Should return a list of streams related to the current handled.
|
List<StreamSegment> |
getStreamSegments()
The list of stream segments by timestamps for the stream.
|
List<String> |
getTags()
The list of tags of the stream.
|
String |
getTextualUploadDate()
The original textual date provided by the service.
|
String |
getThumbnailUrl()
This will return the url to the thumbnail of the stream.
|
String |
getUploaderAvatarUrl()
The url to the image file/profile picture/avatar of the creator/uploader of the stream.
|
String |
getUploaderName()
The name of the creator/uploader of the stream.
|
String |
getUploaderUrl()
The Url to the page of the creator/uploader of the stream.
|
String |
getUrl() |
void |
onFetchPage(Downloader downloader)
Fetch the current page.
|
getAlbumInfoJson, getStreamType, getUploadDate, getVideoOnlyStreams, getVideoStreams
getAgeLimit, getDashMpdUrl, getDislikeCount, getErrorMessage, getFrames, getHlsUrl, getHost, getLanguageInfo, getLikeCount, getMetaInfo, getPrivacy, getRelatedStreams, getSubChannelAvatarUrl, getSubChannelName, getSubChannelUrl, getSubtitles, getSubtitlesDefault, getSupportInfo, getTimeStamp, getTimestampSeconds, getUploaderSubscriberCount, getViewCount, isUploaderVerified
assertPageFetched, fetchPage, forceContentCountry, forceLocalization, getBaseUrl, getDownloader, getExtractorContentCountry, getExtractorLocalization, getId, getLinkHandler, getOriginalUrl, getService, getServiceId, getTimeAgoParser, isPageFetched
public BandcampRadioStreamExtractor(StreamingService service, LinkHandler linkHandler)
public void onFetchPage(@Nonnull Downloader downloader) throws IOException, ExtractionException
Extractor
onFetchPage
in class BandcampStreamExtractor
downloader
- the downloader to useIOException
- if the page can not be loadedExtractionException
- if the pages content is not understood@Nonnull public String getName() throws ParsingException
Extractor
getName
in class BandcampStreamExtractor
ParsingException
- if the name cannot be extracted@Nonnull public String getUploaderUrl() throws ContentNotSupportedException
StreamExtractor
ChannelExtractor
, so be sure to implement that one before you return a value here,
otherwise NewPipe will crash if one selects this url.getUploaderUrl
in class BandcampStreamExtractor
ContentNotSupportedException
@Nonnull public String getUrl() throws ParsingException
getUrl
in class BandcampStreamExtractor
ParsingException
@Nonnull public String getUploaderName()
StreamExtractor
getUploaderName
in class BandcampStreamExtractor
@Nullable public String getTextualUploadDate()
StreamExtractor
StreamExtractor.getUploadDate()
isn't provided by the service, or it fails for some reason.
If the stream is a live stream, null
should be returned.
getTextualUploadDate
in class BandcampStreamExtractor
null
.StreamExtractor.getUploadDate()
@Nonnull public String getThumbnailUrl() throws ParsingException
StreamExtractor
getThumbnailUrl
in class BandcampStreamExtractor
ParsingException
@Nonnull public String getUploaderAvatarUrl()
StreamExtractor
getUploaderAvatarUrl
in class BandcampStreamExtractor
@Nonnull public Description getDescription()
StreamExtractor
getDescription
in class BandcampStreamExtractor
Description.EMPTY_DESCRIPTION
if the
description is empty.public long getLength()
StreamExtractor
getLength
in class StreamExtractor
public List<AudioStream> getAudioStreams()
StreamExtractor
AudioStream
s.
You can also return null or an empty list, however be aware that if you don't return anything
in getVideoStreams(), getVideoOnlyStreams() and getDashMpdUrl() either the Collector will
handle this as a failed extraction procedure.getAudioStreams
in class BandcampStreamExtractor
@Nonnull public List<StreamSegment> getStreamSegments() throws ParsingException
StreamExtractor
getStreamSegments
in class StreamExtractor
ParsingException
@Nonnull public String getLicence()
StreamExtractor
getLicence
in class BandcampStreamExtractor
@Nonnull public String getCategory()
StreamExtractor
getCategory
in class BandcampStreamExtractor
@Nonnull public List<String> getTags()
StreamExtractor
getTags
in class BandcampStreamExtractor
public PlaylistInfoItemsCollector getRelatedItems()
StreamExtractor
null
.getRelatedItems
in class BandcampStreamExtractor