-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Use the new youtube api for comments #2217
Conversation
While you're at it, can you update the hard-coded client version? latest is |
Done ✔️ |
Why do you say comment_service_ajax will be deprecated? |
The desktop interface of Youtube doesn't use it anymore so that's why I think it is going to soon stop working. |
Maybe it was an experiment two days ago, unfortunately I didn't record anything, so I can't prove what I said. I really think it was really an experiment because I can't find again the |
We got a report about this too (yt-dlp/yt-dlp#438) - it seems like they are A/B testing it with the new API. For me it's still using the old API, but I'm guessing they'll slowly roll some form of this out in the coming months. The old endpoint probably won't go away for a while. |
db589c9
to
33fd1d4
Compare
In testing on one of my backends |
Broken comments on https://yewtu.be/watch?v=Lsuob8Uug50 |
FYI it appears that YouTube is deploying this new API change to desktop web now, and they have changed the response json structure too. |
I’ve been running my instance with #2220 for a week now. For example, right now I can’t open the “View 3 replies” link in Also it sometimes crashes the instance:
|
Should now be fixed. @SamantazFox Could you take a look at the new code? Not sure if I wrote it properly. |
I'm not sure what you tried to achieve here: be22e2c#diff-c3b1698911da42ad59caee99b5c324448dfe7c8a79ca6b0995c2e07d3ee8ebe7R86-R99 |
Youtube is A/B testing a new format for the comments. This format is derived from the ANDROID client format. |
I got that, but what about the for loop that overrides the different variables each time? |
in testing on https://test.invidious.io, along with #2277 and #2220 NB: I had to do some minor changes to make it work |
be22e2c
to
80f7b11
Compare
Merging as-is, even if in some rare cases comments don't show up. Youtube has moved entirely to that new endpoint, so comments were broken. |
This PR is related to #1981.
This PR switch the endpoint used for fetching the comments from the old and soon deprecated
https://www.youtube.com/comment_service_ajax
to the InnerTube API with the endpoint/next
.Issue to fix: