make getInfo from Extractor public
In StreamInfo and CommentsInfo
This commit is contained in:
parent
44c54d403a
commit
fcdb50b825
2 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue