diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/comments/CommentsInfoItem.java b/extractor/src/main/java/org/schabi/newpipe/extractor/comments/CommentsInfoItem.java index 0b3d10cd9..6dc588ed2 100644 --- a/extractor/src/main/java/org/schabi/newpipe/extractor/comments/CommentsInfoItem.java +++ b/extractor/src/main/java/org/schabi/newpipe/extractor/comments/CommentsInfoItem.java @@ -29,6 +29,8 @@ public class CommentsInfoItem extends InfoItem { public static final int NO_LIKE_COUNT = -1; public static final int NO_STREAM_POSITION = -1; + public static final int UNKNOWN_REPLY_COUNT = -1; + public CommentsInfoItem(final int serviceId, final String url, final String name) { super(InfoType.COMMENT, serviceId, url, name); } diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/comments/CommentsInfoItemExtractor.java b/extractor/src/main/java/org/schabi/newpipe/extractor/comments/CommentsInfoItemExtractor.java index 95c522c63..53aa6497c 100644 --- a/extractor/src/main/java/org/schabi/newpipe/extractor/comments/CommentsInfoItemExtractor.java +++ b/extractor/src/main/java/org/schabi/newpipe/extractor/comments/CommentsInfoItemExtractor.java @@ -114,10 +114,11 @@ public interface CommentsInfoItemExtractor extends InfoItemExtractor { /** * The count of comment replies. * - * @return the count of the replies, or -1 if replies are not supported + * @return the count of the replies + * or {@link CommentsInfoItem#UNKNOWN_REPLY_COUNT} if replies are not supported */ default int getReplyCount() throws ParsingException { - return -1; + return CommentsInfoItem.UNKNOWN_REPLY_COUNT; } /**