Move variable to super Extractor classes.
This commit is contained in:
parent
ab49cb6e18
commit
d290d2e393
|
@ -28,6 +28,8 @@ import org.schabi.newpipe.extractor.stream.StreamInfoItem;
|
||||||
|
|
||||||
public abstract class ChannelExtractor extends ListExtractor<StreamInfoItem> {
|
public abstract class ChannelExtractor extends ListExtractor<StreamInfoItem> {
|
||||||
|
|
||||||
|
public static final long UNKNOWN_SUBSCRIBER_COUNT = -1;
|
||||||
|
|
||||||
public ChannelExtractor(StreamingService service, ListLinkHandler linkHandler) {
|
public ChannelExtractor(StreamingService service, ListLinkHandler linkHandler) {
|
||||||
super(service, linkHandler);
|
super(service, linkHandler);
|
||||||
}
|
}
|
||||||
|
|
|
@ -61,8 +61,6 @@ public class YoutubeChannelExtractor extends ChannelExtractor {
|
||||||
private JsonObject initialData;
|
private JsonObject initialData;
|
||||||
private JsonObject videoTab;
|
private JsonObject videoTab;
|
||||||
|
|
||||||
private static final long UNKNOWN_SUBSCRIBER_COUNT = -1;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Some channels have response redirects and the only way to reliably get the id is by saving it.
|
* Some channels have response redirects and the only way to reliably get the id is by saving it.
|
||||||
* <p>
|
* <p>
|
||||||
|
|
|
@ -103,8 +103,6 @@ public class YoutubeStreamExtractor extends StreamExtractor {
|
||||||
@Nullable
|
@Nullable
|
||||||
private List<SubtitlesStream> subtitles = null;
|
private List<SubtitlesStream> subtitles = null;
|
||||||
|
|
||||||
private static final long UNKNOWN_SUBSCRIBER_COUNT = -1;
|
|
||||||
|
|
||||||
public YoutubeStreamExtractor(final StreamingService service, final LinkHandler linkHandler) {
|
public YoutubeStreamExtractor(final StreamingService service, final LinkHandler linkHandler) {
|
||||||
super(service, linkHandler);
|
super(service, linkHandler);
|
||||||
}
|
}
|
||||||
|
|
|
@ -47,6 +47,7 @@ import java.util.Locale;
|
||||||
public abstract class StreamExtractor extends Extractor {
|
public abstract class StreamExtractor extends Extractor {
|
||||||
|
|
||||||
public static final int NO_AGE_LIMIT = 0;
|
public static final int NO_AGE_LIMIT = 0;
|
||||||
|
public static final long UNKNOWN_SUBSCRIBER_COUNT = -1;
|
||||||
|
|
||||||
public StreamExtractor(StreamingService service, LinkHandler linkHandler) {
|
public StreamExtractor(StreamingService service, LinkHandler linkHandler) {
|
||||||
super(service, linkHandler);
|
super(service, linkHandler);
|
||||||
|
|
Loading…
Reference in New Issue