From fcdb50b82567aed1ad52a5b5791d5b16aa79a059 Mon Sep 17 00:00:00 2001 From: bopol Date: Mon, 8 Feb 2021 18:41:14 +0100 Subject: [PATCH] make getInfo from Extractor public In StreamInfo and CommentsInfo --- .../org/schabi/newpipe/extractor/comments/CommentsInfo.java | 2 +- .../java/org/schabi/newpipe/extractor/stream/StreamInfo.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/comments/CommentsInfo.java b/extractor/src/main/java/org/schabi/newpipe/extractor/comments/CommentsInfo.java index e5f25527e..49bbaf090 100644 --- a/extractor/src/main/java/org/schabi/newpipe/extractor/comments/CommentsInfo.java +++ b/extractor/src/main/java/org/schabi/newpipe/extractor/comments/CommentsInfo.java @@ -25,7 +25,7 @@ public class CommentsInfo extends ListInfo { return getInfo(serviceByUrl.getCommentsExtractor(url)); } - private static CommentsInfo getInfo(CommentsExtractor commentsExtractor) throws IOException, ExtractionException { + public static CommentsInfo getInfo(CommentsExtractor commentsExtractor) throws IOException, ExtractionException { // for services which do not have a comments extractor if (null == commentsExtractor) { return null; diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/stream/StreamInfo.java b/extractor/src/main/java/org/schabi/newpipe/extractor/stream/StreamInfo.java index 8fa325544..6477c9e4f 100644 --- a/extractor/src/main/java/org/schabi/newpipe/extractor/stream/StreamInfo.java +++ b/extractor/src/main/java/org/schabi/newpipe/extractor/stream/StreamInfo.java @@ -64,7 +64,7 @@ public class StreamInfo extends Info { return getInfo(service.getStreamExtractor(url)); } - private static StreamInfo getInfo(StreamExtractor extractor) throws ExtractionException, IOException { + public static StreamInfo getInfo(StreamExtractor extractor) throws ExtractionException, IOException { extractor.fetchPage(); StreamInfo streamInfo; try {