mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2025-04-27 23:40:36 +05:30
Reformatted code
This commit is contained in:
parent
2174685c5c
commit
46654f5fca
@ -2,6 +2,7 @@ package org.schabi.newpipe.extractor.services.youtube.extractors;
|
||||
|
||||
import com.grack.nanojson.JsonArray;
|
||||
import com.grack.nanojson.JsonObject;
|
||||
|
||||
import org.schabi.newpipe.extractor.comments.CommentsInfoItemExtractor;
|
||||
import org.schabi.newpipe.extractor.exceptions.ParsingException;
|
||||
import org.schabi.newpipe.extractor.localization.DateWrapper;
|
||||
@ -115,12 +116,12 @@ public class YoutubeCommentsInfoItemExtractor implements CommentsInfoItemExtract
|
||||
*/
|
||||
try {
|
||||
// If a comment has no likes voteCount is not set
|
||||
if(!json.has("voteCount")) {
|
||||
if (!json.has("voteCount")) {
|
||||
return EMPTY_STRING;
|
||||
}
|
||||
|
||||
final JsonObject voteCountObj = JsonUtils.getObject(json, "voteCount");
|
||||
if(voteCountObj.isEmpty()) {
|
||||
if (voteCountObj.isEmpty()) {
|
||||
return EMPTY_STRING;
|
||||
}
|
||||
return getTextFromObject(voteCountObj);
|
||||
|
Loading…
x
Reference in New Issue
Block a user