Skip to content
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

channel fix (banner, playlist) #2215

Merged
merged 2 commits into from
May 12, 2022
Merged

channel fix (banner, playlist) #2215

merged 2 commits into from
May 12, 2022

Conversation

hockerschwan
Copy link
Contributor

@hockerschwan hockerschwan commented Apr 22, 2022

Pull Request Type
Please select what type of pull request this is:

  • Bugfix

Related issue
Closes #2214

Description
Banner: Invidious returns "authorBanners": [ ] for channels without banners, results in "TypeError: Cannot read properties of undefined (reading 'url')"
example: UC3VHfy8e1jbDnT5TG2pjP1w (Nyan cat)

Playlist:

Subscribe to a few channels with playlists (to access them from sidebar)
Reload (Ctrl R)
View "Playlists" tab of one of the channels
View another channel's playlists (without visiting other pages in between)
It will display either "This channel does not currently have any playlists" or wrong playlists

Screenshots (if appropriate)
Shows defaultBanner.png

Testing (for code that is not small enough to be easily understandable)
Visit a channel without banner

Desktop (please complete the following information):

  • OS: Windows 10
  • OS Version: 21H1
  • FreeTube version: v0.16, 2c131ae

@PrestonN PrestonN enabled auto-merge (squash) April 22, 2022 08:06
@efb4f5ff-1298-471a-8973-3d47447115dc efb4f5ff-1298-471a-8973-3d47447115dc added the PR: waiting for review For PRs that are complete, tested, and ready for review label Apr 22, 2022
Copy link
Member

@ChunkyProgrammer ChunkyProgrammer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe remove the "console.log"s?

auto-merge was automatically disabled April 23, 2022 16:02

Head branch was pushed to by a user without write access

@PrestonN PrestonN enabled auto-merge (squash) April 23, 2022 16:02
@hockerschwan
Copy link
Contributor Author

Removed console.log(response)

wonder why getPlaylistsLocal has it but invidious doesn't

@absidue
Copy link
Member

absidue commented Apr 27, 2022

@hockerschwan probably because the Invidious API stays mostly the same and when it does change the changes are usually not breaking, however due to the nature of the local API using libraries that scrape the YouTube website the likelyhood of the output changing is much higher.

@hockerschwan
Copy link
Contributor Author

hockerschwan commented Apr 27, 2022

Thanks for the explanation.
Didn't know ytch is a "in-house" project of FreeTubeApp

Copy link
Member

@ChunkyProgrammer ChunkyProgrammer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@PrestonN PrestonN merged commit 8b50045 into FreeTubeApp:development May 12, 2022
@github-actions github-actions bot removed the PR: waiting for review For PRs that are complete, tested, and ready for review label May 12, 2022
@hockerschwan hockerschwan deleted the channel_fix branch May 21, 2022 04:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Wrong channel playlists when visiting another channel directly on invidious
6 participants