mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 15:26:01 +03:00
[GH-ISSUE #37] To add brand accounts support #28
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#28
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 @Takoooooo on GitHub (Jul 2, 2020).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/37
Youtube Music have brand account,and they have another authentification type.If user wil try to authentificate with brand account to current api version it will cause error.I would like to help a bit to find you solution of this problem.As i understood to authentificate brand users properly you will need to add only "onBehalfOfUser" property to "user" class with proper value.

As i understand they get value of this property from this request,but i dont understand what generates body of this request(i assume it generated by javascript)
In next request body already contains this property.And we can find proper onBehalfOfUser value already in response of this request(but mb it also generated by javascript and already known).How to create a brand account you can find by this link https://support.google.com/youtube/answer/1646861?hl=en.
Without onBehalfOfUser property in json it will authentificate to parent account(if you havent created separate brand account,but created just one more channel to existing) or it will throw an exception
@sigma67 commented on GitHub (Jul 2, 2020):
Brand accounts are supported since 0.7.0: https://github.com/sigma67/ytmusicapi/releases/tag/0.7.0
Documentation is here: https://ytmusicapi.readthedocs.io/en/latest/usage.html#brand-accounts
Let me know if it works for you!