mirror of
https://github.com/TeamNewPipe/NewPipeExtractor
synced 2025-08-31 06:15:37 +00:00
make getInfo from Extractor public
In StreamInfo and CommentsInfo
This commit is contained in:
@@ -25,7 +25,7 @@ public class CommentsInfo extends ListInfo<CommentsInfoItem> {
|
|||||||
return getInfo(serviceByUrl.getCommentsExtractor(url));
|
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
|
// for services which do not have a comments extractor
|
||||||
if (null == commentsExtractor) {
|
if (null == commentsExtractor) {
|
||||||
return null;
|
return null;
|
||||||
|
@@ -64,7 +64,7 @@ public class StreamInfo extends Info {
|
|||||||
return getInfo(service.getStreamExtractor(url));
|
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();
|
extractor.fetchPage();
|
||||||
StreamInfo streamInfo;
|
StreamInfo streamInfo;
|
||||||
try {
|
try {
|
||||||
|
Reference in New Issue
Block a user