Skip to content

get_video_comment() only returns 5 replies #7

Description

@Fergus-Boyd

From the documentation:

replies.comments[] A list of one or more replies to the top-level comment. Each item in the list is a comment resource.
The list contains a limited number of replies, and unless the number of items in the list equals the value of the snippet.totalReplyCount property, the list of replies is only a subset of the total number of replies available for the top-level comment. To retrieve all of the replies for the top-level comment, you need to call the comments.list method and use the parentId request parameter to identify the comment for which you want to retrieve replies.

https://developers.google.com/youtube/v3/docs/commentThreads

I've addressed this in my fork by creating a new method get_comment_replies() that uses 'https://www.googleapis.com/youtube/v3/comments' instead of 'https://www.googleapis.com/youtube/v3/commentThreads' and takes the parentId as a parameter. The load_comments() method then calls this method if a topLevelComment has one or more replies.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions