55 lines
1.7 KiB
Java
55 lines
1.7 KiB
Java
|
package org.schabi.newpipe.extractor.playlist;
|
||
|
|
||
|
import org.schabi.newpipe.extractor.ListExtractor;
|
||
|
import org.schabi.newpipe.extractor.StreamingService;
|
||
|
import org.schabi.newpipe.extractor.exceptions.ParsingException;
|
||
|
import org.schabi.newpipe.extractor.linkhandler.ListLinkHandler;
|
||
|
import org.schabi.newpipe.extractor.stream.StreamInfoItem;
|
||
|
|
||
|
import javax.annotation.Nonnull;
|
||
|
|
||
|
public abstract class PlaylistExtractor extends ListExtractor<StreamInfoItem> {
|
||
|
|
||
|
public PlaylistExtractor(final StreamingService service, final ListLinkHandler linkHandler) {
|
||
|
super(service, linkHandler);
|
||
|
}
|
||
|
|
||
|
public abstract String getUploaderUrl() throws ParsingException;
|
||
|
public abstract String getUploaderName() throws ParsingException;
|
||
|
public abstract String getUploaderAvatarUrl() throws ParsingException;
|
||
|
public abstract boolean isUploaderVerified() throws ParsingException;
|
||
|
|
||
|
public abstract long getStreamCount() throws ParsingException;
|
||
|
|
||
|
@Nonnull
|
||
|
public String getThumbnailUrl() throws ParsingException {
|
||
|
return "";
|
||
|
}
|
||
|
|
||
|
@Nonnull
|
||
|
public String getBannerUrl() throws ParsingException {
|
||
|
// Banner can't be handled by frontend right now.
|
||
|
// Whoever is willing to implement this should also implement it in the frontend.
|
||
|
return "";
|
||
|
}
|
||
|
|
||
|
@Nonnull
|
||
|
public String getSubChannelName() throws ParsingException {
|
||
|
return "";
|
||
|
}
|
||
|
|
||
|
@Nonnull
|
||
|
public String getSubChannelUrl() throws ParsingException {
|
||
|
return "";
|
||
|
}
|
||
|
|
||
|
@Nonnull
|
||
|
public String getSubChannelAvatarUrl() throws ParsingException {
|
||
|
return "";
|
||
|
}
|
||
|
|
||
|
public PlaylistInfo.PlaylistType getPlaylistType() throws ParsingException {
|
||
|
return PlaylistInfo.PlaylistType.NORMAL;
|
||
|
}
|
||
|
}
|