Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ public CommentsInfoItem extract(final CommentsInfoItemExtractor extractor)
addError(e);
}


return resultItem;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ public boolean hasCreatorReply() {
}

@Override
public boolean isEdited() {
public boolean isEdited() throws ParsingException {
try {
final JsonObject obj = commentEntityPayload.getObject(PROPERTIES);
if (obj == null || !obj.has(PUBLISHED_TIME)) {
Expand All @@ -242,7 +242,7 @@ public boolean isEdited() {
final String str = obj.getString(PUBLISHED_TIME, "");
return str.contains("(") && str.contains(")");
} catch (final Exception e) {
return false;
throw new ParsingException("Could not check whether the comment is edited", e);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ public boolean isChannelOwner() {
}

@Override
public boolean isEdited() {
public boolean isEdited() throws ParsingException {
try {
if (!commentRenderer.has(PUBLISHED_TIME_TEXT)) {
return false;
Expand All @@ -297,7 +297,7 @@ public boolean isEdited() {
}
return false;
} catch (final Exception e) {
return false;
throw new ParsingException("Could not check whether the comment is edited", e);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ public void testEditedCommentFlagIsExtracted() throws Exception {
}
}

assertTrue(hasEditedComment, "No comments is edited on this video. "+"Ensure test video has edited comment near the top.");
assertTrue(hasEditedComment, "No comments is edited on this video. Ensure test video has edited comment near the top.");
}
}
}
Loading