mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 15:26:01 +03:00
[GH-ISSUE #284] Not all channels have a 'musicImmersiveHeaderRenderer' #222
Labels
No labels
a/b
bug
documentation
enhancement
good first issue
help wanted
invalid
pull-request
question
wontfix
yt-error
yt-update
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ytmusicapi#222
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Yamboy1 on GitHub (Jul 28, 2022).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/284
Running
causes this KeyError
It appears that channels which only have videos, and not songs, have a less featureful 'musicVisualHeaderRenderer' instead of the normal 'musicImmersiveHeaderRenderer', without shuffle, radio and subscribe buttons. I was hoping this would be a quick fix, but the channel id is obtained from the subscribe button for some reason, which seems to complicate things slightly.

@sigma67 commented on GitHub (Aug 2, 2022):
It's because this is not an artist, it's a user. You need to use
get_user.This is usually the case when there are only videos and playlists on the page. Perhaps we could add an Exception to indicate that this might be a user if the
musicImmersiveHeaderRendereris missing.