mirror of
https://github.com/Googolplexed0/zotify.git
synced 2026-04-24 22:05:53 +03:00
[GH-ISSUE #157] [Bug Report] Periodic Interactive Login Required #139
Labels
No labels
bug
considering
discussion
documentation
enhancement
enhancement
good first issue
help wanted
pull-request
question
stale
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/zotify#139
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 @carlyd95 on GitHub (Jan 22, 2026).
Original GitHub issue: https://github.com/Googolplexed0/zotify/issues/157
Originally assigned to: @Googolplexed0 on GitHub.
Zotify Version
v0.15.3 (new-hierarchy)
Bug Description
Must periodically re-authenticate for Spotify API. Is it possible to refresh the token to avoid having to periodically open this link?
I have done this with another script using spotipy but I am not sure if it is possible with the method used here.
Bug Triggering Command
sudo -u pi /home/pi/.local/bin/zotify -f tz.txt --download-format mp3 --download-quality very_high --root-path /media/pi/X9/DJ/Music --output "{artist} - {song_name}" --download-real-time True --md-save-genres True --client-id XXXXXXXXXXXXXXXXXX --debug
Error Traceback / Logs
OUTPUT:
DEBUG ### config_DEBUG.json saved to /home/pi/.config/zotify ### ### zotify_DEBUG_2026-01-21_09-49-37.log logging to /media/pi/X9/DJ/Music ### [∙●∙] Logging in... ### Login via saved OAuth credentials failed! Falling back to interactive login ## [∙∙∙] Logging in... Click on the following link to login: [https://accounts.spotify.com/authorize?response_type=code&client_id=f68d5f5521f045eea3d171c63c0…](https://accounts.spotify.com/authorize?response_type=code&client_id=XXXXXXXXXXXXXXXXXXX&redirect_uri=http://127.0.0.1:4381/login&code_challenge=XXXXXXXXXXXXXXXXXXXXXX&code_challenge_method=S256&scope=streaming+playlist-read-private+playlist-read-collaborative+user-follow-read+user-read-playback-position+user-top-read+user-read-recently-played+user-library-read+user-read-email+user-read-private) Must manually reauthenticate via URL periodicallyDEBUG:
zotify_DEBUG_2026-01-21_09-49-37.log
Config File
config_DEBUG.json
Additional Comments
This previously was no issue and was really nice as it would allow you to run zotify on a cronjob but if it requires manual url interaction that would be counterintuitive. I would really appreciate if this can be resolved. If I can help with it let me know.
Thank you!