NewPipeExtractor/extractor/src/main/java/org/schabi/newpipe/extractor/playlist/PlaylistInfoItemExtractor.java

52 lines
1.4 KiB
Java
Raw Normal View History

package org.schabi.newpipe.extractor.playlist;
2017-08-11 20:21:49 +02:00
import org.schabi.newpipe.extractor.InfoItemExtractor;
import org.schabi.newpipe.extractor.exceptions.ParsingException;
2023-05-01 00:04:00 +02:00
import org.schabi.newpipe.extractor.localization.DateWrapper;
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
*/
String getUploaderName() throws ParsingException;
2017-11-11 02:55:56 +01:00
/**
* Get the uploader url
* @return the uploader url
*/
String getUploaderUrl() throws ParsingException;
/**
* Get whether the uploader is verified
* @return whether the uploader is verified
*/
boolean isUploaderVerified() throws ParsingException;
2017-11-11 02:55:56 +01:00
/**
* Get the number of streams
* @return the number of streams
*/
2017-08-06 22:20:15 +02:00
long getStreamCount() throws ParsingException;
/**
* @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;
}
2023-05-01 00:04:00 +02:00
default String getTextualUploadDate() throws ParsingException {
return null;
}
default DateWrapper getUploadDate() throws ParsingException {
return null;
}
}