Move variable to super Extractor classes.

This commit is contained in:
FireMasterK 2022-02-13 19:43:17 +00:00
parent ab49cb6e18
commit d290d2e393
No known key found for this signature in database
GPG Key ID: 49451E4482CC5BCD
4 changed files with 3 additions and 4 deletions

View File

@ -28,6 +28,8 @@ import org.schabi.newpipe.extractor.stream.StreamInfoItem;
public abstract class ChannelExtractor extends ListExtractor<StreamInfoItem> {
public static final long UNKNOWN_SUBSCRIBER_COUNT = -1;
public ChannelExtractor(StreamingService service, ListLinkHandler linkHandler) {
super(service, linkHandler);
}

View File

@ -61,8 +61,6 @@ public class YoutubeChannelExtractor extends ChannelExtractor {
private JsonObject initialData;
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.
* <p>

View File

@ -103,8 +103,6 @@ public class YoutubeStreamExtractor extends StreamExtractor {
@Nullable
private List<SubtitlesStream> subtitles = null;
private static final long UNKNOWN_SUBSCRIBER_COUNT = -1;
public YoutubeStreamExtractor(final StreamingService service, final LinkHandler linkHandler) {
super(service, linkHandler);
}

View File

@ -47,6 +47,7 @@ import java.util.Locale;
public abstract class StreamExtractor extends Extractor {
public static final int NO_AGE_LIMIT = 0;
public static final long UNKNOWN_SUBSCRIBER_COUNT = -1;
public StreamExtractor(StreamingService service, LinkHandler linkHandler) {
super(service, linkHandler);