mirror of
https://github.com/sigma67/ytmusicapi.git
synced 2026-04-25 15:26:01 +03:00
[GH-ISSUE #508] Help to understand token refactoring #370
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#370
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 @KoljaWindeler on GitHub (Jan 7, 2024).
Original GitHub issue: https://github.com/sigma67/ytmusicapi/issues/508
Hi @sigma67, as you know I'm using your code to provide access to ytubemusic to users of homeassistant with this integration https://github.com/KoljaWindeler/ytube_music_player
I've added oAuth a while back and it worked absolutely awesome!! great work
To be honest: I don't understand how to re-work it after the code was refactored :( can you give me a hand?
what i did was
I understood that
transitioned to
correct?
And
moved into
but is not longer failing when the oauto process wasn't completed, correct? is there any way for me to check if it did?
How do I store the token? I've tried several things but it looks like my skills are limited here.
Can you help me restore the original behavior (not by changing your code but by helping me with the correct calls)
@KoljaWindeler commented on GitHub (Jan 7, 2024):
Ok, finally understood that I needed a refreshtoken .. working again.
@sigma67 commented on GitHub (Jan 7, 2024):
Hi, sorry for the trouble with the breaking changes. The refactoring was not initiated by me but I take full responsibility.
I hope it all worked out and the class structure makes sense from your perspective. Feel free to suggest improvements
@KoljaWindeler commented on GitHub (Jan 7, 2024):
No worries, it just took forever to understand it.
Another thing that is odd: I had to redo all token. Is this expected?
That would mean that all users would have to reconfigure all installations .. oh oh ;)
@sigma67 commented on GitHub (Jan 7, 2024):
No, the format should stay the same. What issue did you face?
@KoljaWindeler commented on GitHub (Jan 7, 2024):
So .. I usually have my dev PC and my productive PC in sync .. same token files .. that used to work fine.
So here I copy my real PC -> Dev PC
This usually worked fine .. the token also still works fine on the productive setup but on my dev setup it results in an exception on the init
after running another setup routine the file looks like this
any idea?
I'll try tomorrow to create a token file on 1.3.2 and load that using 1.4.2 both on my dev pc .. same machine for both but I'm almost sure that it will fail
@KoljaWindeler commented on GitHub (Jan 7, 2024):
hmm never mind .. works .. strange .. maybe my testing killed something .. not sure .. will report if this happens to other users when all change to 1.4.2
get_search_suggestions#603