-
Notifications
You must be signed in to change notification settings - Fork 864
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
Upgrade YouTube.js from 4.3 to 5.0.2 (fixes throttling) #3474
Conversation
The view count on the watch page is currently always |
|
Most everything looks good. The buffering speed seems to be noticeably improved for me, but I did notice a warning out of youtube.js on the video: https://youtu.be/eBZ2vA9D2RA which didn't seem to be present before. It doesn't look like anything is breaking, but this warning does appear in the console when the video first loads before the comment section is opened, so I don't think this warning has do to with anything that FT uses since the comment section is only shown after an additional request is made for a comment continuation. |
I'm guessing this PR will be updated to 5.0.2? |
Views are fixed now. |
@MarmadileManteater that's probably fine, that just means there was a node/renderer in the Innertube response that YouTube.js doesn't know about. Unless something is broken (e.g. missing information, other errors) it's not something we need to worry about, if there is missing information it probably needs to be parsed from the new nodes in YouTube.js. |
Build script had trouble downloading a package. |
You don't have to build it yourself anymore, as it's been merged you can just download the nightly build for it. |
Oh sorry, forgot to mention. That was from the nightly build log. Your win x86 builds failed. But the next nightly 2890 succeeded, so it's good. |
Upgrade YouTube.js from 4.3 to 5.0.2 (fixes throttling)
Pull Request Type
Related issue
closes #3457
closes #3475 (dependabot PR)
Description
Upgrades to YouTube.js 5.0.1, as YouTube.js 5 did a bunch of refactoring this PR also has changes for that in it.
The code changes in this PR in no particular order:
Endpoints.BrowseEndpoint.PATH
is verbose but as they are ES6 namespace exports/imports, webpack optimises it to a direct reference toPATH
at build time, even for the code inside YouTube.js) for the local API subscription fetchingviews
->view_count
"N/A"
if aText
element is empty, it now has anText#isEmpty()
method that we can use instead, so I switched to that as well.Testing
Everything with the local API without video proxying enabled
@YouTube
channel or https://youtube.com/@YouTube if you prefer a full URL and check that it doesn't spit out errors about not being able to call.replace()
onundefined
anymore.Desktop