-
-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automate Apple Music token updates #590
Comments
https://music.apple.com/assets/index-d98aab9a.js Why is the docker image still running with a 401 error even though I replaced the tonken in the default conf.json with the latest token? |
First, can you file another issue? since this is a tracking issue for automation not token-related issues. And in that, can you elaborate on how you are updating the token and building the image? |
@zykrah, yeah it's practically equivalent to the script I have in the OP. Just that they're writing it to the file at the end, but you still have to manually call the script. For freyr, I would like to integrate it directly so that when freyr itself detects that the token has expired, it updates it itself. |
I've translated the process into a python script, I don't know much JavaScript but I'm sure it wouldn't be too difficult using requests and regex/whatever other string manipulation? As for detection of whether the token has expired, couldn't you just test for 401 responses whenever you call to the endpoint and then run the token update function (and cache it locally?). |
Yes, exactly. We already have detection, just not update and eventual persistence. Haven't had the time for a while. 😓 |
how can i do this on my own, i cant run the commands (linux) |
nvm i got used the script and it worked |
@Khadeeejah just submitted #623, which is a promising resolution for this issue. |
The most filed, recurring issue is the Apple Music token expiring - #14, #70, #91, #399, #439, #481, #497, #498, #501, #530, #534, #548, #584 and #585.
It would be great to have the updates automated, and not require new releases of freyr.
Right now? I do the process manually which is;
We should be able to do this extraction inside freyr itself like we do with Spotify to auto-refresh the token.
The text was updated successfully, but these errors were encountered: