From d290d2e39396a4a5856ebfa2d5cd59e438f0f69a Mon Sep 17 00:00:00 2001 From: FireMasterK <20838718+FireMasterK@users.noreply.github.com> Date: Sun, 13 Feb 2022 19:43:17 +0000 Subject: [PATCH] Move variable to super Extractor classes. --- .../org/schabi/newpipe/extractor/channel/ChannelExtractor.java | 2 ++ .../services/youtube/extractors/YoutubeChannelExtractor.java | 2 -- .../services/youtube/extractors/YoutubeStreamExtractor.java | 2 -- .../org/schabi/newpipe/extractor/stream/StreamExtractor.java | 1 + 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/channel/ChannelExtractor.java b/extractor/src/main/java/org/schabi/newpipe/extractor/channel/ChannelExtractor.java index 8f2fe79ab..1ec47498a 100644 --- a/extractor/src/main/java/org/schabi/newpipe/extractor/channel/ChannelExtractor.java +++ b/extractor/src/main/java/org/schabi/newpipe/extractor/channel/ChannelExtractor.java @@ -28,6 +28,8 @@ import org.schabi.newpipe.extractor.stream.StreamInfoItem; public abstract class ChannelExtractor extends ListExtractor { + public static final long UNKNOWN_SUBSCRIBER_COUNT = -1; + public ChannelExtractor(StreamingService service, ListLinkHandler linkHandler) { super(service, linkHandler); } diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeChannelExtractor.java b/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeChannelExtractor.java index 6b19d6068..b01767e35 100644 --- a/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeChannelExtractor.java +++ b/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeChannelExtractor.java @@ -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. *

diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeStreamExtractor.java b/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeStreamExtractor.java index 3799dec76..34e414a7f 100644 --- a/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeStreamExtractor.java +++ b/extractor/src/main/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeStreamExtractor.java @@ -103,8 +103,6 @@ public class YoutubeStreamExtractor extends StreamExtractor { @Nullable private List subtitles = null; - private static final long UNKNOWN_SUBSCRIBER_COUNT = -1; - public YoutubeStreamExtractor(final StreamingService service, final LinkHandler linkHandler) { super(service, linkHandler); } diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/stream/StreamExtractor.java b/extractor/src/main/java/org/schabi/newpipe/extractor/stream/StreamExtractor.java index f7bac660e..c84a7a8fc 100644 --- a/extractor/src/main/java/org/schabi/newpipe/extractor/stream/StreamExtractor.java +++ b/extractor/src/main/java/org/schabi/newpipe/extractor/stream/StreamExtractor.java @@ -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);