-
Notifications
You must be signed in to change notification settings - Fork 886
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
Support YouTube using PageHeader on user channels not just auto-generated ones #4543
Support YouTube using PageHeader on user channels not just auto-generated ones #4543
Conversation
@@ -1,5 +1,8 @@ | |||
{ | |||
"vueCompilerOptions": { | |||
"target": 2.7 | |||
}, | |||
"compilerOptions": { | |||
"strictNullChecks": true |
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.
This makes vscode actually show undefined
and null
in type definitions e.g. auto-complete and the popup that appears when you hover over functions.
7090682
to
4b1579a
Compare
4b1579a
to
91e7102
Compare
Got conflict but bot not announcing? |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
is it possible to provide a build so i can daily drive this for a day or two |
91e7102
to
bad92f0
Compare
Conflicts have been resolved. A maintainer will review the pull request shortly. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
@curather That's just a placebo, YouTube randomly returns the empty feed. This pull request has no change that affects the watch page, even the YouTube.js upgrade doesn't affect it. |
a70067e
…ated ones (#4543) * Support YouTube using PageHeader on user channels not just auto-generated ones * Bump YouTube.js to 9.0.2 as requested
Support YouTube using PageHeader on user channels not just auto-generated ones
Pull Request Type
Related issues
closes #4560
Description
This pull request fixes the
TypeError: Cannot read properties of undefined (reading 'name')
error messages that you may have seen poping up on the subscriptions page and on the channel pages. There are other places in FreeTube that make requests to the channel page, however I decided not to change anything there yet, as that would cause conflicts with #4340.YouTube has an A/B test going on to use the
PageHeader
node on user channels, previously it was only used on system channels like@gaming
. This pull request adds support for that to FreeTube.Screenshots
Testing
In
src/renderer/helpers/api/local.js
addvisitor_data: 'CgtwUmJqXzhJdVFCSijM_oStBg%3D%3D',
to theInnerTube.create
call in thecreateInnertube
function e.g. between line 46 and 47.Test various user channels e.g.
https://youtube.com/@YouTube
and then also the system oneshttps://youtube.com/@gaming
andhttps://youtube.com/@live
to make sure that the new logic didn't break them (they are empty apart from the header, the banner being missing is expected too as they don't have one on YouTube).Desktop