mirror of
https://github.com/Googolplexed0/zotify.git
synced 2026-04-25 06:15:55 +03:00
[GH-ISSUE #43] [Bug Report] Process Hangs with No Print Statements #35
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#35
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 @Geezer1834 on GitHub (Aug 4, 2025).
Original GitHub issue: https://github.com/Googolplexed0/zotify/issues/43
Originally assigned to: @Googolplexed0 on GitHub.
Bug Description
Authentication via the --creds location works as expected, and the configuration is handled properly using --config-location. However, when I pass a file containing multiple URLs using the --file parameter, the process hangs indefinitely without any output or progress.
Bug Triggering Command
/usr/bin/zotify --creds=/home/../.zotify/ --config-location=/home/.../.zotify/ --file=/path/to/test
Error Traceback / Logs
No specific error is shown. The command simply hangs and does not proceed.
Additional Context
The file test contains multiple URLs (one per line), e.g.:
https://open.spotify.com/track/abc123
https://open.spotify.com/album/xyz789
@Googolplexed0 commented on GitHub (Aug 8, 2025):
Just tested the
-fmode functionality, no issues on my system. What version of the library? Can you confirm that everything works as expected when downloading an individual track? If you aren't seeing the### FILE {filename} NOT FOUND ###error then there isn't an issue naming/finding the file.@Geezer1834 commented on GitHub (Aug 8, 2025):
thanks for the response, single track also fails to work the behavior remains the same
@Googolplexed0 commented on GitHub (Aug 8, 2025):
If you do not see the
Logging In...Loader bar then something in the library installation must be incorrect. Try reinstalling withpipx install --force https://github.com/Googolplexed0/zotifyto see if that fixes it. If that doesn't help, try running with the--debugcmd line flag and include the resulting terminal output and .log file here.@Geezer1834 commented on GitHub (Aug 23, 2025):
As I mentioned, I can log in, but it then hangs here:
/usr/bin/zotify --creds=/home/.zotify/ --config-location=/home/.zotify/
https://open.spotify.com/intl-de/track/62aP9fBQKYKxi7PDXwcUAS?si=ef1112f0c67348c3
WARNING: CONFIG
OAUTH_ADDRESSIS DEPRECATED, IGNORINGTHIS WILL BE REMOVED IN FUTURE VERSIONS
Delete the "OAUTH_ADDRESS": "0.0.0.0" line from your config.json
I also ran:
pip uninstall librespot
pip install git+https://github.com/kokarare1212/librespot-python
pipx install --force https://github.com/Googolplexed0/zotify
still the same... any Idea?
Log:
'streaming': '1', 'streaming-rules': None, 'subscription-enddate': '2025-11-02T06:47:06Z', 'ugc-abuse-report': '1', 'ugc-abuse-report-url': 'https://support.s
potify.com/abuse/?uri={uri}', 'unrestricted': '1', 'user-profile-show-invitation-codes': '0', 'video-cdn-sampling': '100', 'video-device-blacklisted': '0', 'v
ideo-keyframe-url': 'http://keyframes-fa.cdn.spotify.com/keyframes/v1/sources/{source_id}/keyframe/heights/{height}/timestamps/{timestamp_ms}.jpg', 'video-man
ifest-url': 'https://spclient.wg.spotify.com/manifests/v6/{type}/sources/{source_id}/options/supports_drm', 'widevine-license-url': 'https://spclient.wg.spoti
fy.com/widevine-license/v1/video/license'}
INFO:Librespot:Session:Skipping 1f
INFO:Librespot:Session:Skipping 69
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): apresolve.spotify.com:443
DEBUG:Librespot:MercuryClient:Handling packet, cmd: 0xb5, seq: -2557763113369731072, flags: b'\x01', parts: 1
DEBUG:Librespot:MercuryClient:Couldn't dispatch Mercury event seq: -2557763113369731072, uri: hm://pusher/v1/connections/OTNiOTIyYjhkMDI4NDQ4NjYyYjQwYjI3OGMzM
TkyN2RjMDQ1MWQxNCtBUCt0Y3A6Ly8wYWNhNDAxMy5pcC5nZXcxLnNwb3RpZnkubmV0OjUwMTgrRTM5MjZCODQwNDdEMTVGQTlGN0U5RDlDNUY5RUZDMTM5OTg1QzQ2QTE4MDgyNTFGNEQwMjc4OTNEQkYxOUN
ERQ%3D%3D, code: 200, payload: b''
DEBUG:Librespot:Session:Received 0x10: dbbc5d40a056f13c9a60b858f5fde9f89e111245
INFO:Librespot:Session:Skipping unknown command cmd: 0x75, payload: b'\x00\x00\x01'
DEBUG:urllib3.connectionpool:https://apresolve.spotify.com:443 "GET /?type=dealer HTTP/1.1" 200 None
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): login5.spotify.com:443
DEBUG:urllib3.connectionpool:https://login5.spotify.com:443 "POST /v3/login HTTP/1.1" 200 None
INFO:Librespot:TokenProvider:Login5 authentication successful, got access token
DEBUG:Librespot:TokenProvider:Using Login5 access token for scopes: ['playlist-read']
INFO:Librespot:Session:Authenticated as xxxx!
@Googolplexed0 commented on GitHub (Aug 24, 2025):
The next line should be
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): login5.spotify.com:XXX, when requesting the metadata withget_track_metadata(). No idea how it is not getting to this point but also isn't erroring out. Try updating to v0.9.26 and sending your debug.log again. Might help pinpoint where things are breaking.@Geezer1834 commented on GitHub (Aug 24, 2025):
...
DEBUG
Session Initialized Successfully
✓
/usr/lib/python3.12/multiprocessing/resource_tracker.py:254: UserWarning: resource_tracker: There appear to be 1 leaked semaphore objects to clean up at shutdown
warnings.warn('resource_tracker: There appear to be %d '
Below my log after upgrading v0.9.26:
'streaming': '1', 'streaming-rules': None, 'subscription-enddate': '2025-11-02T06:47:06Z', 'ugc-abuse-report': '1', 'ugc-abuse-report-url': 'https://support.s
potify.com/abuse/?uri={uri}', 'unrestricted': '1', 'user-profile-show-invitation-codes': '0', 'video-cdn-sampling': '100', 'video-device-blacklisted': '0', 'v
ideo-keyframe-url': 'http://keyframes-fa.cdn.spotify.com/keyframes/v1/sources/{source_id}/keyframe/heights/{height}/timestamps/{timestamp_ms}.jpg', 'video-man
ifest-url': 'https://spclient.wg.spotify.com/manifests/v6/{type}/sources/{source_id}/options/supports_drm', 'widevine-license-url': 'https://spclient.wg.spoti
fy.com/widevine-license/v1/video/license'}
INFO:Librespot:Session:Skipping 1f
INFO:Librespot:Session:Skipping 69
DEBUG:Librespot:MercuryClient:Handling packet, cmd: 0xb5, seq: 654712994852241408, flags: b'\x01', parts: 1
DEBUG:Librespot:MercuryClient:Couldn't dispatch Mercury event seq: 654712994852241408, uri: hm://pusher/v1/connections/OGQ4Mjk3Y2Y2OTAzMDQzMGNjNzg5N2Q0NGRlZWE
wODQ5ZTA3NGQ0YStBUCt0Y3A6Ly8wYWNhNDA5YS5pcC5nZXcxLnNwb3RpZnkubmV0OjUwMzArNkM4RTgzNkZBMEMzQkNDREZBMkExRkNDNDIyRDA2NEQzRDVDMDZBRTBEQUI2QkY3NzEyMDlCQzAyOEU3MEJFN
g%3D%3D, code: 200, payload: b''
DEBUG:Librespot:Session:Received 0x10: 0f403f29aae93dc62cb34d6abc1497955c30f051
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): apresolve.spotify.com:443
INFO:Librespot:Session:Skipping unknown command cmd: 0x75, payload: b'\x00\x00\x01'
DEBUG:urllib3.connectionpool:https://apresolve.spotify.com:443 "GET /?type=dealer HTTP/1.1" 200 None
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): login5.spotify.com:443
DEBUG:urllib3.connectionpool:https://login5.spotify.com:443 "POST /v3/login HTTP/1.1" 200 None
INFO:Librespot:TokenProvider:Login5 authentication successful, got access token
DEBUG:Librespot:TokenProvider:Using Login5 access token for scopes: ['playlist-read']
INFO:Librespot:Session:Authenticated as xxxxx!
✓
@Googolplexed0 commented on GitHub (Aug 30, 2025):
No idea why it isn't progressing further if you are seeing this. Does this occur for you when running the efficient-api branch as well? Also, please attach any future DEBUG.logs as files rather than text.