[GH-ISSUE #157] [Bug Report] Periodic Interactive Login Required #139

Open
opened 2026-02-27 04:57:47 +03:00 by kerem · 0 comments
Owner

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 periodically

DEBUG:

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!

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 periodically` ### DEBUG: [zotify_DEBUG_2026-01-21_09-49-37.log](https://github.com/user-attachments/files/24785242/zotify_DEBUG_2026-01-21_09-49-37.log) **Config File** [config_DEBUG.json](https://github.com/user-attachments/files/24727970/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!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/zotify#139
No description provided.