[GH-ISSUE #95] [Bug Report] Cannot Get Alternative Track #82

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

Originally created by @zhibufan on GitHub (Oct 7, 2025).
Original GitHub issue: https://github.com/Googolplexed0/zotify/issues/95

Originally assigned to: @Googolplexed0 on GitHub.

Zotify Version
v0.9.27

Bug Description
cannot download song again ,i update to the new version,still not work

Traceback (most recent call last):
File "C:\Users\zbf\pipx\venvs\zotify\Lib\site-packages\zotify\track.py", line 292, in download_track
stream = Zotify.get_content_stream(track, Zotify.DOWNLOAD_QUALITY)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\zbf\pipx\venvs\zotify\Lib\site-packages\zotify\config.py", line 628, in get_content_stream
raise e
File "C:\Users\zbf\pipx\venvs\zotify\Lib\site-packages\zotify\config.py", line 620, in get_content_stream
return cls.SESSION.content_feeder().load(content_id, VorbisOnlyAudioQuality(quality), False, None)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\zbf\pipx\venvs\zotify\Lib\site-packages\librespot\audio_init_.py", line 741, in load
return self.load_track(playable_id, audio_quality_picker, preload,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\zbf\pipx\venvs\zotify\Lib\site-packages\librespot\audio_init_.py", line 793, in load_track
raise RuntimeError("Cannot get alternative track")
RuntimeError: Cannot get alternative track

Originally created by @zhibufan on GitHub (Oct 7, 2025). Original GitHub issue: https://github.com/Googolplexed0/zotify/issues/95 Originally assigned to: @Googolplexed0 on GitHub. **Zotify Version** v0.9.27 **Bug Description** cannot download song again ,i update to the new version,still not work Traceback (most recent call last): File "C:\Users\zbf\pipx\venvs\zotify\Lib\site-packages\zotify\track.py", line 292, in download_track stream = Zotify.get_content_stream(track, Zotify.DOWNLOAD_QUALITY) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\zbf\pipx\venvs\zotify\Lib\site-packages\zotify\config.py", line 628, in get_content_stream raise e File "C:\Users\zbf\pipx\venvs\zotify\Lib\site-packages\zotify\config.py", line 620, in get_content_stream return cls.SESSION.content_feeder().load(content_id, VorbisOnlyAudioQuality(quality), False, None) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\zbf\pipx\venvs\zotify\Lib\site-packages\librespot\audio\__init__.py", line 741, in load return self.load_track(playable_id, audio_quality_picker, preload, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\zbf\pipx\venvs\zotify\Lib\site-packages\librespot\audio\__init__.py", line 793, in load_track raise RuntimeError("Cannot get alternative track") RuntimeError: Cannot get alternative track
kerem 2026-02-27 04:57:26 +03:00
Author
Owner

@Googolplexed0 commented on GitHub (Oct 18, 2025):

librespot\audio__init__.py", line 793, in load_track
raise RuntimeError("Cannot get alternative track")

Please include your config file and the exact command you ran that caused this error. This usually happens due to an account issue or a track not being available in your region.

<!-- gh-comment-id:3418393767 --> @Googolplexed0 commented on GitHub (Oct 18, 2025): > librespot\audio__init__.py", line 793, in load_track > raise RuntimeError("Cannot get alternative track") Please include your config file and the exact command you ran that caused this error. This usually happens due to an account issue or a track not being available in your region.
Author
Owner

@NickDegrasse commented on GitHub (Nov 6, 2025):

I actually just started receiving this issue as well (Zotify version 0.9.25). I've tried both zotify <playlist url> and zotify <song url> and both yielded the same error, even after re-logging in. Config settings are below:

{ "DEBUG": "False", "ROOT_PATH": "~/Music/Zotify Music", "SAVE_CREDENTIALS": "True", "CREDENTIALS_LOCATION": "", "OUTPUT": "", "OUTPUT_PLAYLIST": "{playlist}/{album_artist} - {song_name}", "OUTPUT_PLAYLIST_EXT": "{playlist}/{album_artist} - {song_name}", "OUTPUT_LIKED_SONGS": "Liked Songs/{artist}_{song_name}", "OUTPUT_SINGLE": "{album_artist} - {song_name}", "OUTPUT_ALBUM": "{artist}/{album}/{album_num}_{artist}_{song_name}", "ROOT_PODCAST_PATH": "~/Music/Zotify Podcasts", "SPLIT_ALBUM_DISCS": "False", "MAX_FILENAME_LENGTH": "0", "BULK_WAIT_TIME": "30", "DOWNLOAD_REAL_TIME": "False", "TEMP_DOWNLOAD_DIR": "", "DOWNLOAD_PARENT_ALBUM": "False", "NO_COMPILATION_ALBUMS": "False", "REGEX_ENABLED": "False", "REGEX_TRACK_SKIP": "", "REGEX_EPISODE_SKIP": "", "REGEX_ALBUM_SKIP": "", "DOWNLOAD_FORMAT": "copy", "DOWNLOAD_QUALITY": "very_high", "TRANSCODE_BITRATE": "auto", "SONG_ARCHIVE_LOCATION": "", "DISABLE_SONG_ARCHIVE": "False", "DISABLE_DIRECTORY_ARCHIVES": "False", "SKIP_EXISTING": "True", "SKIP_PREVIOUSLY_DOWNLOADED": "True", "EXPORT_M3U8": "False", "M3U8_LOCATION": "", "M3U8_REL_PATHS": "True", "LIKED_SONGS_ARCHIVE_M3U8": "True", "DOWNLOAD_LYRICS": "False", "LYRICS_LOCATION": "", "ALWAYS_CHECK_LYRICS": "False", "LYRICS_MD_HEADER": "False", "LANGUAGE": "en", "STRICT_LIBRARY_VERIFY": "True", "MD_DISC_TRACK_TOTALS": "True", "MD_SAVE_GENRES": "True", "MD_ALLGENRES": "False", "MD_GENREDELIMITER": ", ", "MD_ARTISTDELIMITER": ", ", "MD_SAVE_LYRICS": "True", "ALBUM_ART_JPG_FILE": "False", "RETRY_ATTEMPTS": "1", "CHUNK_SIZE": "20000", "REDIRECT_ADDRESS": "127.0.0.1", "PRINT_SPLASH": "False", "PRINT_PROGRESS_INFO": "True", "PRINT_SKIPS": "True", "PRINT_DOWNLOADS": "True", "PRINT_DOWNLOAD_PROGRESS": "True", "PRINT_URL_PROGRESS": "True", "PRINT_ALBUM_PROGRESS": "True", "PRINT_ARTIST_PROGRESS": "True", "PRINT_PLAYLIST_PROGRESS": "True", "PRINT_WARNINGS": "True", "PRINT_ERRORS": "True", "PRINT_API_ERRORS": "True", "FFMPEG_LOG_LEVEL": "error" }

<!-- gh-comment-id:3498498948 --> @NickDegrasse commented on GitHub (Nov 6, 2025): I actually just started receiving this issue as well (Zotify version 0.9.25). I've tried both `zotify <playlist url>` and `zotify <song url>` and both yielded the same error, even after re-logging in. Config settings are below: `{ "DEBUG": "False", "ROOT_PATH": "~/Music/Zotify Music", "SAVE_CREDENTIALS": "True", "CREDENTIALS_LOCATION": "", "OUTPUT": "", "OUTPUT_PLAYLIST": "{playlist}/{album_artist} - {song_name}", "OUTPUT_PLAYLIST_EXT": "{playlist}/{album_artist} - {song_name}", "OUTPUT_LIKED_SONGS": "Liked Songs/{artist}_{song_name}", "OUTPUT_SINGLE": "{album_artist} - {song_name}", "OUTPUT_ALBUM": "{artist}/{album}/{album_num}_{artist}_{song_name}", "ROOT_PODCAST_PATH": "~/Music/Zotify Podcasts", "SPLIT_ALBUM_DISCS": "False", "MAX_FILENAME_LENGTH": "0", "BULK_WAIT_TIME": "30", "DOWNLOAD_REAL_TIME": "False", "TEMP_DOWNLOAD_DIR": "", "DOWNLOAD_PARENT_ALBUM": "False", "NO_COMPILATION_ALBUMS": "False", "REGEX_ENABLED": "False", "REGEX_TRACK_SKIP": "", "REGEX_EPISODE_SKIP": "", "REGEX_ALBUM_SKIP": "", "DOWNLOAD_FORMAT": "copy", "DOWNLOAD_QUALITY": "very_high", "TRANSCODE_BITRATE": "auto", "SONG_ARCHIVE_LOCATION": "", "DISABLE_SONG_ARCHIVE": "False", "DISABLE_DIRECTORY_ARCHIVES": "False", "SKIP_EXISTING": "True", "SKIP_PREVIOUSLY_DOWNLOADED": "True", "EXPORT_M3U8": "False", "M3U8_LOCATION": "", "M3U8_REL_PATHS": "True", "LIKED_SONGS_ARCHIVE_M3U8": "True", "DOWNLOAD_LYRICS": "False", "LYRICS_LOCATION": "", "ALWAYS_CHECK_LYRICS": "False", "LYRICS_MD_HEADER": "False", "LANGUAGE": "en", "STRICT_LIBRARY_VERIFY": "True", "MD_DISC_TRACK_TOTALS": "True", "MD_SAVE_GENRES": "True", "MD_ALLGENRES": "False", "MD_GENREDELIMITER": ", ", "MD_ARTISTDELIMITER": ", ", "MD_SAVE_LYRICS": "True", "ALBUM_ART_JPG_FILE": "False", "RETRY_ATTEMPTS": "1", "CHUNK_SIZE": "20000", "REDIRECT_ADDRESS": "127.0.0.1", "PRINT_SPLASH": "False", "PRINT_PROGRESS_INFO": "True", "PRINT_SKIPS": "True", "PRINT_DOWNLOADS": "True", "PRINT_DOWNLOAD_PROGRESS": "True", "PRINT_URL_PROGRESS": "True", "PRINT_ALBUM_PROGRESS": "True", "PRINT_ARTIST_PROGRESS": "True", "PRINT_PLAYLIST_PROGRESS": "True", "PRINT_WARNINGS": "True", "PRINT_ERRORS": "True", "PRINT_API_ERRORS": "True", "FFMPEG_LOG_LEVEL": "error" }`
Author
Owner

@RedCardRef commented on GitHub (Nov 6, 2025):

Started having the same issue today. Config file is available here

<!-- gh-comment-id:3499001286 --> @RedCardRef commented on GitHub (Nov 6, 2025): Started having the same issue today. Config file is available [here](https://1drv.ms/f/c/ab6b3155340300a9/Et5antPffktLjnrct5UsyW8BBTJqQKxVOJovtC6Kt00zcQ?e=gsrBCh)
Author
Owner

@PrajnaAvidya commented on GitHub (Nov 6, 2025):

looks like spotify changed something which broke librespot https://github.com/librespot-org/librespot/issues/1623

<!-- gh-comment-id:3499020333 --> @PrajnaAvidya commented on GitHub (Nov 6, 2025): looks like spotify changed something which broke librespot https://github.com/librespot-org/librespot/issues/1623
Author
Owner

@auisdhf878tyc807asdhfiunkm commented on GitHub (Nov 6, 2025):

There is a solution coming to librespot, but we'll have to wait for it to be implemented in librespot-python

<!-- gh-comment-id:3499071878 --> @auisdhf878tyc807asdhfiunkm commented on GitHub (Nov 6, 2025): There is a [solution](https://github.com/librespot-org/librespot/pull/1622) coming to librespot, but we'll have to wait for it to be implemented in librespot-python
Author
Owner

@fafamobile commented on GitHub (Nov 6, 2025):

yea im pretty sure its librespot issue so hopefully fixed soon - can someone ping me when available

<!-- gh-comment-id:3499297725 --> @fafamobile commented on GitHub (Nov 6, 2025): yea im pretty sure its librespot issue so hopefully fixed soon - can someone ping me when available
Author
Owner

@imthekiller00 commented on GitHub (Nov 7, 2025):

@fafamobile it's available here: https://github.com/librespot-org/librespot/pull/1622

Bless you 🙏

<!-- gh-comment-id:3499906958 --> @imthekiller00 commented on GitHub (Nov 7, 2025): @fafamobile it's available here: https://github.com/librespot-org/librespot/pull/1622 Bless you 🙏
Author
Owner

@fafamobile commented on GitHub (Nov 7, 2025):

@fafamobile it's available here: librespot-org/librespot#1622

Bless you 🙏

How do I run to update librespot?

<!-- gh-comment-id:3499952420 --> @fafamobile commented on GitHub (Nov 7, 2025): > [@fafamobile](https://github.com/fafamobile) it's available here: [librespot-org/librespot#1622](https://github.com/librespot-org/librespot/pull/1622) > > Bless you 🙏 How do I run to update librespot?
Author
Owner

@pandarrr commented on GitHub (Nov 7, 2025):

You can't run librespot (the Rust implementation) with Zotify. The change needs to be propagated to librespot-python which hasn't happened yet. Issue is being tracked here

<!-- gh-comment-id:3504803241 --> @pandarrr commented on GitHub (Nov 7, 2025): You can't run librespot (the Rust implementation) with Zotify. The change needs to be propagated to librespot-python which hasn't happened yet. Issue is being tracked [here](https://github.com/kokarare1212/librespot-python/issues/321)
Author
Owner

@fafamobile commented on GitHub (Nov 10, 2025):

let me know when fixed and on zotify

<!-- gh-comment-id:3510609713 --> @fafamobile commented on GitHub (Nov 10, 2025): let me know when fixed and on zotify
Author
Owner

@Googolplexed0 commented on GitHub (Nov 11, 2025):

let me know when fixed and on zotify

Fixed on efficient-api branch

<!-- gh-comment-id:3514941117 --> @Googolplexed0 commented on GitHub (Nov 11, 2025): > let me know when fixed and on zotify Fixed on efficient-api branch
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#82
No description provided.