2017-03-12 16:15:51 +01:00
|
|
|
package org.schabi.newpipe.extractor.playlist;
|
|
|
|
|
2017-08-11 20:21:49 +02:00
|
|
|
import org.schabi.newpipe.extractor.InfoItemExtractor;
|
2017-03-12 16:15:51 +01:00
|
|
|
import org.schabi.newpipe.extractor.exceptions.ParsingException;
|
|
|
|
|
2022-02-02 19:12:36 +01:00
|
|
|
import javax.annotation.Nonnull;
|
|
|
|
|
2017-08-11 20:21:49 +02:00
|
|
|
public interface PlaylistInfoItemExtractor extends InfoItemExtractor {
|
2017-11-11 02:55:56 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the uploader name
|
|
|
|
* @return the uploader name
|
|
|
|
* @throws ParsingException
|
|
|
|
*/
|
2017-08-10 04:50:29 +02:00
|
|
|
String getUploaderName() throws ParsingException;
|
2017-11-11 02:55:56 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the number of streams
|
|
|
|
* @return the number of streams
|
|
|
|
* @throws ParsingException
|
|
|
|
*/
|
2017-08-06 22:20:15 +02:00
|
|
|
long getStreamCount() throws ParsingException;
|
2022-02-02 19:12:36 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @return the type of this playlist, see {@link PlaylistInfo.PlaylistType} for a description
|
|
|
|
* of types. If not overridden always returns {@link PlaylistInfo.PlaylistType#NORMAL}.
|
|
|
|
*/
|
|
|
|
@Nonnull
|
|
|
|
default PlaylistInfo.PlaylistType getPlaylistType() throws ParsingException {
|
|
|
|
return PlaylistInfo.PlaylistType.NORMAL;
|
|
|
|
}
|
2017-03-12 16:15:51 +01:00
|
|
|
}
|