[GH-ISSUE #73] [Bug Report] Cannot Get Alternative Track #61

Closed
opened 2026-02-27 04:57:19 +03:00 by kerem · 2 comments
Owner

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

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
kerem 2026-02-27 04:57:19 +03:00
Author
Owner

@Googolplexed0 commented on GitHub (Sep 16, 2025):

raise RuntimeError("Cannot get alternative track")

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?

<!-- gh-comment-id:3294739205 --> @Googolplexed0 commented on GitHub (Sep 16, 2025): > raise RuntimeError("Cannot get alternative track") 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?
Author
Owner

@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.

<!-- gh-comment-id:3305310537 --> @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.
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#61
No description provided.