mirror of
https://github.com/Googolplexed0/zotify.git
synced 2026-04-27 07:15:57 +03:00
[GH-ISSUE #73] [Bug Report] Cannot Get Alternative Track #61
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#61
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 @zesky18 on GitHub (Sep 12, 2025).
Original GitHub issue: https://github.com/Googolplexed0/zotify/issues/73
Originally assigned to: @Googolplexed0 on GitHub.
I just updated from the main Zotify to the fork recently because I kept getting error when trying to download songs. When I got finish and try to download something, that same error appears.
Cannot get alternative track
Traceback (most recent call last):
File "C:\Users\Tong\scoop\apps\python\current\Lib\site-packages\zotify\track.py", line 224, in download_track
stream = Zotify.get_content_stream(track, Zotify.DOWNLOAD_QUALITY)
File "C:\Users\Tong\scoop\apps\python\current\Lib\site-packages\zotify\zotify.py", line 53, in get_content_stream
return cls.SESSION.content_feeder().load(content_id, VorbisOnlyAudioQuality(quality), False, None)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Tong\scoop\apps\python\current\Lib\site-packages\librespot\audio_init_.py", line 739, in load
return self.load_track(playable_id, audio_quality_picker, preload,
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
halt_listener)
^^^^^^^^^^^^^^
File "C:\Users\Tong\scoop\apps\python\current\Lib\site-packages\librespot\audio_init_.py", line 791, in load_track
raise RuntimeError("Cannot get alternative track")
RuntimeError: Cannot get alternative track
@Googolplexed0 commented on GitHub (Sep 16, 2025):
Often, a specific Track will not available in a region. When this happens the API will automatically try to find a "different Track" (different track_id, same song file) to replace the "original Track" that was requested. This error may result from that secret replacement failing.
I will need the link/uri you were using to see if I can reproduce this error and investigate further. Are you able to listen to this exact song through the platform proper? Does this error only occur for specific tracks/albums/playlists?
@zesky18 commented on GitHub (Sep 18, 2025):
I did a complete wipe of zotify and after a reinstall of this fork, the problem seems to be gone, so I no longer able to reproduce the bug I had before. It's probably cause by some left over from the main branch and unrelated to this fork.