-
Notifications
You must be signed in to change notification settings - Fork 877
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
Migrate comments to YouTube.js #3072
Migrate comments to YouTube.js #3072
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested comment with loading more via local API
* @param {import('youtubei.js/dist/src/parser/classes/comments/Comment').default} comment | ||
*/ | ||
export function parseLocalComment(comment, hasOwnerReplied = false, replyToken = null) { | ||
return { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this. We should probably return new objects for other api calls as well in the future (i think this would be very useful for our invidious functions)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it will also allow us to return the data in the same format, that way we don't need separate handling for Invidious and local API data in ft-list-channel and similar components.
src/renderer/components/watch-video-comments/watch-video-comments.js
Outdated
Show resolved
Hide resolved
Tested with videos from the yt-comment-scraper tests: |
@efb4f5ff-1298-471a-8973-3d47447115dc we need you! 😄 |
Migrate comments to YouTube.js
Pull Request Type
Description
Migrated the comments to YouTube.js, this allows us to get rid of the
@freetube/yt-comment-scraper
dependency.Nearly there 😁
Testing
Try the comments under various videos.
Desktop