2017-06-29 20:12:55 +02:00
|
|
|
package org.schabi.newpipe.extractor.playlist;
|
|
|
|
|
2017-07-10 00:43:04 +02:00
|
|
|
import org.schabi.newpipe.extractor.ListExtractor;
|
2017-08-06 22:20:15 +02:00
|
|
|
import org.schabi.newpipe.extractor.StreamingService;
|
2017-06-29 20:12:55 +02:00
|
|
|
import org.schabi.newpipe.extractor.UrlIdHandler;
|
|
|
|
import org.schabi.newpipe.extractor.exceptions.ExtractionException;
|
|
|
|
import org.schabi.newpipe.extractor.exceptions.ParsingException;
|
|
|
|
|
|
|
|
import java.io.IOException;
|
|
|
|
|
2017-07-10 00:43:04 +02:00
|
|
|
public abstract class PlaylistExtractor extends ListExtractor {
|
2017-06-29 20:12:55 +02:00
|
|
|
|
2017-08-06 22:20:15 +02:00
|
|
|
public PlaylistExtractor(StreamingService service, String url, String nextStreamsUrl) throws IOException, ExtractionException {
|
|
|
|
super(service, url, nextStreamsUrl);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
protected UrlIdHandler getUrlIdHandler() throws ParsingException {
|
|
|
|
return getService().getPlaylistUrlIdHandler();
|
2017-06-29 20:12:55 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public abstract String getPlaylistId() throws ParsingException;
|
|
|
|
public abstract String getPlaylistName() throws ParsingException;
|
|
|
|
public abstract String getAvatarUrl() throws ParsingException;
|
|
|
|
public abstract String getBannerUrl() throws ParsingException;
|
|
|
|
public abstract String getUploaderUrl() throws ParsingException;
|
|
|
|
public abstract String getUploaderName() throws ParsingException;
|
|
|
|
public abstract String getUploaderAvatarUrl() throws ParsingException;
|
2017-08-06 22:20:15 +02:00
|
|
|
public abstract long getStreamCount() throws ParsingException;
|
2017-06-29 20:12:55 +02:00
|
|
|
}
|