|
8 | 8 |
|
9 | 9 | import javax.annotation.Nonnull; |
10 | 10 |
|
| 11 | +import static org.schabi.newpipe.extractor.utils.Utils.EMPTY_STRING; |
| 12 | + |
11 | 13 | public abstract class PlaylistExtractor extends ListExtractor<StreamInfoItem> { |
12 | 14 |
|
13 | | - public PlaylistExtractor(StreamingService service, ListLinkHandler linkHandler) { |
| 15 | + public PlaylistExtractor(final StreamingService service, final ListLinkHandler linkHandler) { |
14 | 16 | super(service, linkHandler); |
15 | 17 | } |
16 | 18 |
|
17 | | - public abstract String getThumbnailUrl() throws ParsingException; |
18 | | - public abstract String getBannerUrl() throws ParsingException; |
19 | | - |
20 | 19 | public abstract String getUploaderUrl() throws ParsingException; |
21 | 20 | public abstract String getUploaderName() throws ParsingException; |
22 | 21 | public abstract String getUploaderAvatarUrl() throws ParsingException; |
23 | 22 | public abstract boolean isUploaderVerified() throws ParsingException; |
24 | 23 |
|
25 | 24 | public abstract long getStreamCount() throws ParsingException; |
26 | 25 |
|
27 | | - @Nonnull public abstract String getSubChannelName() throws ParsingException; |
28 | | - @Nonnull public abstract String getSubChannelUrl() throws ParsingException; |
29 | | - @Nonnull public abstract String getSubChannelAvatarUrl() throws ParsingException; |
| 26 | + @Nonnull |
| 27 | + public String getThumbnailUrl() throws ParsingException { |
| 28 | + return EMPTY_STRING; |
| 29 | + } |
| 30 | + |
| 31 | + @Nonnull |
| 32 | + public String getBannerUrl() throws ParsingException { |
| 33 | + // Banner can't be handled by frontend right now. |
| 34 | + // Whoever is willing to implement this should also implement it in the frontend. |
| 35 | + return EMPTY_STRING; |
| 36 | + } |
| 37 | + |
| 38 | + @Nonnull |
| 39 | + public String getSubChannelName() throws ParsingException { |
| 40 | + return EMPTY_STRING; |
| 41 | + } |
30 | 42 |
|
| 43 | + @Nonnull |
| 44 | + public String getSubChannelUrl() throws ParsingException { |
| 45 | + return EMPTY_STRING; |
| 46 | + } |
| 47 | + |
| 48 | + @Nonnull |
| 49 | + public String getSubChannelAvatarUrl() throws ParsingException { |
| 50 | + return EMPTY_STRING; |
| 51 | + } |
31 | 52 | } |
0 commit comments