mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 07:16:00 +03:00
[GH-ISSUE #297] YTMusic.subscribe_artists() does not subscribe, but only adds it to the subscriptions list #234
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#234
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 @shuyec on GitHub (Sep 20, 2022).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/297
I'm trying to use

YTMusic.subscribe_artists(["UC5OrDvL9DscpcAstz7JnQGA"]), but I've noticed that it only adds the artist to the subscriptions list. It shows up correctly withYTMusic.get_library_subscriptions, but the actual webpage looks like this:It is in the list but not actually subscribed. You can also see this with
YTMusic.get_artistbecause the "subscribed" key is false.@sigma67 commented on GitHub (Sep 21, 2022):
Not to discredit your observation, but this endpoint has been working and unchanged for a very long time. In my tests right now there were no issues.
Are you sure you're using the same account for all your tests? You might be subscribing with an unauthenticated account and checking subscriptions with a different instance. Your syntax also seems odd, as you're using the
YTMusicclass, not an instance. Alternatively, please provide more of your code.@shuyec commented on GitHub (Sep 21, 2022):
I'm sorry, I found the mistake and it was my bad. I was actually subscribing using the
browseId"UCoIOOL7QKuBhQHVKL8y7BEQ" from the search results and not thechannelId"UC5OrDvL9DscpcAstz7JnQGA".They are not interchangeable. If I subscribe with the
browseIdI can't unsubscribe withchannelIdSubscribing using the
browseIdadds it to the subscriptions but does not subscribe.Thanks for the reply.
@sigma67 commented on GitHub (Sep 21, 2022):
It's an interesting case because you can access the page with either ID under
music.youtube.com/channel/ID. Where did you find the otherchannelId? I.e. the one not from the search results.@shuyec commented on GitHub (Sep 21, 2022):
This returns "UCoIOOL7QKuBhQHVKL8y7BEQ" as a browseId.
Both of these two return the artist, but the first has some missing informations like
shuffleIdandradioIdwhich are null.If I use the website, it navigates me to "https://music.youtube.com/channel/UCoIOOL7QKuBhQHVKL8y7BEQ" so it uses the search browseId.
@sigma67 commented on GitHub (Sep 21, 2022):
Right, but where did you get this one?
UC5OrDvL9DscpcAstz7JnQGA@shuyec commented on GitHub (Sep 21, 2022):
From here, they both have "UC5OrDvL9DscpcAstz7JnQGA" as channelId
@sigma67 commented on GitHub (Sep 21, 2022):
Ah, it seems each channel indeed has two IDs of the same format. Just a bit confusing that they are in the same format, despite being used for different purposes