Support YouTube using PageHeader on user channels not just auto-generated ones#4543
Merged
FreeTubeBot merged 2 commits intoFreeTubeApp:developmentfrom Feb 9, 2024
Merged
Conversation
absidue
commented
Jan 14, 2024
| "target": 2.7 | ||
| }, | ||
| "compilerOptions": { | ||
| "strictNullChecks": true |
Member
Author
There was a problem hiding this comment.
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
Member
|
Got conflict but bot not announcing? |
Contributor
|
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Member
|
is it possible to provide a build so i can daily drive this for a day or two |
91e7102 to
bad92f0
Compare
Contributor
|
Conflicts have been resolved. A maintainer will review the pull request shortly. |
Member
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.
Member
Author
|
@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. |
efb4f5ff-1298-471a-8973-3d47447115dc
previously approved these changes
Feb 1, 2024
PikachuEXE
previously approved these changes
Feb 1, 2024
PikachuEXE
reviewed
Feb 1, 2024
a70067e
efb4f5ff-1298-471a-8973-3d47447115dc
approved these changes
Feb 4, 2024
PikachuEXE
approved these changes
Feb 4, 2024
ChunkyProgrammer
approved these changes
Feb 9, 2024
1 task
absidue
added a commit
that referenced
this pull request
Feb 23, 2024
…ated ones (#4543) * Support YouTube using PageHeader on user channels not just auto-generated ones * Bump YouTube.js to 9.0.2 as requested
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
PageHeadernode 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.jsaddvisitor_data: 'CgtwUmJqXzhJdVFCSijM_oStBg%3D%3D',to theInnerTube.createcall in thecreateInnertubefunction e.g. between line 46 and 47.Test various user channels e.g.
https://youtube.com/@YouTubeand then also the system oneshttps://youtube.com/@gamingandhttps://youtube.com/@liveto 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