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(parser): Support CommentView nodes #614

Merged
merged 1 commit into from
Mar 25, 2024
Merged

Conversation

absidue
Copy link
Collaborator

@absidue absidue commented Mar 1, 2024

Adds support for the new nodes that are used for comments CommentView. Unlike most nodes in YouTube's responses, CommentView contains minimal data itself and instead contains a bunch of keys that reference mutations in the framework updates part of the API response.

Compared to the old comments node, this pull request doesn't currently support the logged in features such as replying and liking a comment. It also doesn't have a way of identifying moderators, but I couldn't find any test cases and YouTube's desktop_polymer.js file didn't provide any useful information concerning that either.

@LuanRT Feel free to push commits to this pull request, if you want to address the missing login only features (the relevant innertube commands should be accessible via the toolbar_surface key, although they are incomplete while logged out) or cleanup my handling of the mutations.

closes #613

@LuanRT LuanRT merged commit 900f557 into LuanRT:main Mar 25, 2024
4 checks passed
@absidue absidue deleted the comment-view branch March 25, 2024 10:37
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.

Add support for new comment section structure
2 participants