mirror of
https://github.com/TeamNewPipe/NewPipeExtractor
synced 2025-08-30 13:57:46 +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));
|
||||
}
|
||||
|
||||
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;
|
||||
|
@@ -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 {
|
||||
|
Reference in New Issue
Block a user