mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 15:26:01 +03:00
[GH-ISSUE #100] Cookie key change (SAPISID -> __Secure-3PAPISID) #73
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#73
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 @xlorepdarkhelm on GitHub (Nov 7, 2020).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/100
When running ytmusicapi for the first time with the credentials I have generated following the YTMusic.setup() method, I was getting an error:
Following this, I found that the line in error needs to be changed from:
return cookie["SAPISID"].valueto:
return cookie["__Secure-3PAPISID"].valuein ytmusicapi/helpers.py
This made the code work.
@sigma67 commented on GitHub (Nov 8, 2020):
I can't reproduce this, not even with a fresh session. I always have SAPISID in my cookies.
@arusahni commented on GitHub (Nov 8, 2020):
I encountered this issue yesterday, as well. The workaround in the OP fixed it for me.
browsePOST request@sigma67 commented on GitHub (Nov 9, 2020):
I think the 3PAPISID is identical to the SAPISID in all cases for me, so nothing bad should come from implementing this. Unless there are some edge cases we are not aware of.