Improve names and formatting
This commit is contained in:
parent
1e0c802d8d
commit
5028396405
1 changed files with 3 additions and 3 deletions
|
@ -24,9 +24,9 @@ public class CommentsInfo extends ListInfo<CommentsInfoItem> {
|
||||||
return getInfo(NewPipe.getServiceByUrl(url), url);
|
return getInfo(NewPipe.getServiceByUrl(url), url);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static CommentsInfo getInfo(final StreamingService serviceByUrl, final String url)
|
public static CommentsInfo getInfo(final StreamingService service, final String url)
|
||||||
throws ExtractionException, IOException {
|
throws ExtractionException, IOException {
|
||||||
return getInfo(serviceByUrl.getCommentsExtractor(url));
|
return getInfo(service.getCommentsExtractor(url));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static CommentsInfo getInfo(final CommentsExtractor commentsExtractor)
|
public static CommentsInfo getInfo(final CommentsExtractor commentsExtractor)
|
||||||
|
@ -63,7 +63,7 @@ public class CommentsInfo extends ListInfo<CommentsInfoItem> {
|
||||||
final StreamingService service,
|
final StreamingService service,
|
||||||
final CommentsInfo commentsInfo,
|
final CommentsInfo commentsInfo,
|
||||||
final Page page) throws IOException, ExtractionException {
|
final Page page) throws IOException, ExtractionException {
|
||||||
if (null == commentsInfo.getCommentsExtractor()) {
|
if (commentsInfo.getCommentsExtractor() == null) {
|
||||||
commentsInfo.setCommentsExtractor(service.getCommentsExtractor(commentsInfo.getUrl()));
|
commentsInfo.setCommentsExtractor(service.getCommentsExtractor(commentsInfo.getUrl()));
|
||||||
commentsInfo.getCommentsExtractor().fetchPage();
|
commentsInfo.getCommentsExtractor().fetchPage();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue