make getInfo from Extractor public

In StreamInfo and CommentsInfo
This commit is contained in:
bopol 2021-02-08 18:41:14 +01:00 committed by Tobi
parent 44c54d403a
commit fcdb50b825
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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 {