Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(proto): Add comment_id to commentSectionParams #693

Merged
merged 1 commit into from
Jul 24, 2024

Conversation

gurumnyang
Copy link
Contributor

Fixes #689

The proto.encodeCommentSectionParams method now has a new optional parameter called comment_id, which allows highlighting a specific comment when the page is opened. Here is an example code snippet:

//continuation for /watch?v=jlAd027IBsc&lc=Ugxvmarhks-D40zwQKJ4AaABAg
const continuation = encodeCommentsSectionParams(
  "jlAd027IBsc",
  {
    comment_id: "Ugxvmarhks-D40zwQKJ4AaABAg"
  }
);
console.log(continuation);

The output of the above code will be:

Eg0SC2psQWQwMjdJQnNjGAYyQiIuIgtqbEFkMDI3SUJzYzAAeAKCARpVZ3h2bWFyaGtzLUQ0MHp3UUtKNEFhQUJBZ0IQY29tbWVudHMtc2VjdGlvbg%3D%3D

Process finished with exit code 0

@Wykerd Wykerd changed the title feature(proto): Add comment_id to commentSectionParams feat(proto): Add comment_id to commentSectionParams Jul 19, 2024
@LuanRT
Copy link
Owner

LuanRT commented Jul 24, 2024

Thanks :)!

@LuanRT LuanRT merged commit a5f6209 into LuanRT:main Jul 24, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

can I get specific comment by videoId+comment_id?
2 participants