[GH-ISSUE #44] [Bug Report] "Cannot get alternative track" and "librespot.core.ApiClient.StatusCodeException: 500" errors #38

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

Originally created by @NickDegrasse on GitHub (Aug 6, 2025).
Original GitHub issue: https://github.com/Googolplexed0/zotify/issues/44

Originally assigned to: @Googolplexed0 on GitHub.

Bug Description
Following logging in successfully, and running zotify, I have been receiving general download errors, with the errors listed as "Cannot get alternative track" and "librespot.core.ApiClient.StatusCodeException: 500." This occurs with both individual tracks, and playlists, and typically occurs after the download progress is at 10-50% completion.

Bug Triggering Command
zotify [song/playlist url]

Error Traceback / Logs
zotify https://open.spotify.com/track/2SsY5k7UWFqgye3PUMG3Oq?si=958d7d6b404c4e88 --debug

config_DEBUG.json saved to C:\Users[USER]\AppData\Roaming\Zotify

    [∙∙∙] Logging in...                                                                                                     [∙∙∙] Fetching track information...                                                                                     [●∙∙] Preparing download...                                                                                     

DEBUG
Duplicate Check
File Already Exists: False
song_id in Local Archive: False
song_id in Global Archive: False

    [∙∙●] Preparing download...                                                                                     

ERROR: SKIPPING SONG - GENERAL DOWNLOAD ERROR

Track_Label: Chappell Roan - The Subway - Track_ID: 2SsY5k7UWFqgye3PUMG3Oq

########################################################################################################################
{}
########################################################################################################################

Traceback (most recent call last):
File "C:\Users[USER]\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[USER]\pipx\venvs\zotify\lib\site-packages\zotify\zotify.py", line 57, in get_content_stream
return cls.SESSION.content_feeder().load(content_id, VorbisOnlyAudioQuality(quality), False, None)
File "C:\Users[USER]\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[USER]\pipx\venvs\zotify\lib\site-packages\librespot\audio_init_.py", line 789, in load_track
original = self.__session.api().get_metadata_4_track(
File "C:\Users[USER]\pipx\venvs\zotify\lib\site-packages\librespot\core.py", line 169, in get_metadata_4_track
ApiClient.StatusCodeException.check_status(response)
File "C:\Users[USER]\pipx\venvs\zotify\lib\site-packages\librespot\core.py", line 326, in check_status
raise ApiClient.StatusCodeException(response)
librespot.core.ApiClient.StatusCodeException: 500

DEBUG
Total API Calls: 1

Config File
{
"ROOT_PATH": "/Music/Zotify Music",
"SAVE_CREDENTIALS": "True",
"CREDENTIALS_LOCATION": "",
"OUTPUT": "",
"OUTPUT_PLAYLIST": "{playlist}/{song_name}",
"OUTPUT_PLAYLIST_EXT": "{playlist}/{playlist_num}{artist}{song_name}",
"OUTPUT_LIKED_SONGS": "Liked Songs/{artist}{song_name}",
"OUTPUT_SINGLE": "{artist}/{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": "ogg",
"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": "True",
"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",
"OAUTH_ADDRESS": "0.0.0.0",
"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"
}

Zotify Version
v0.9.0

Additional Context
I did just recently install this branch after having installed the original zotify-dev branch awhile back (which also has this same issue). I renamed the folder containing the old 'zotify.exe', and when running this branch of zotify, have been changing the directory to the containing folder for zotify (C:\Users[USER]\pipx\venvs\zotify\Scripts), then running the 'zotify' command. I'm unsure if there are leftover files from the old install that would cause issues? However when I use this approach I'm able to use commands (such as --version) not implemented in the old branch of zotify

Originally created by @NickDegrasse on GitHub (Aug 6, 2025). Original GitHub issue: https://github.com/Googolplexed0/zotify/issues/44 Originally assigned to: @Googolplexed0 on GitHub. **Bug Description** Following logging in successfully, and running zotify, I have been receiving general download errors, with the errors listed as "Cannot get alternative track" and "librespot.core.ApiClient.StatusCodeException: 500." This occurs with both individual tracks, and playlists, and typically occurs after the download progress is at 10-50% completion. **Bug Triggering Command** zotify [song/playlist url] **Error Traceback / Logs** zotify https://open.spotify.com/track/2SsY5k7UWFqgye3PUMG3Oq?si=958d7d6b404c4e88 --debug ### config_DEBUG.json saved to C:\Users\[USER]\AppData\Roaming\Zotify ### [∙∙∙] Logging in... [∙∙∙] Fetching track information... [●∙∙] Preparing download... DEBUG Duplicate Check File Already Exists: False song_id in Local Archive: False song_id in Global Archive: False [∙∙●] Preparing download... ### ERROR: SKIPPING SONG - GENERAL DOWNLOAD ERROR ### ### Track_Label: Chappell Roan - The Subway - Track_ID: 2SsY5k7UWFqgye3PUMG3Oq ### ######################################################################################################################## {} ######################################################################################################################## Traceback (most recent call last): File "C:\Users\[USER]\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\[USER]\pipx\venvs\zotify\lib\site-packages\zotify\zotify.py", line 57, in get_content_stream return cls.SESSION.content_feeder().load(content_id, VorbisOnlyAudioQuality(quality), False, None) File "C:\Users\[USER]\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\[USER]\pipx\venvs\zotify\lib\site-packages\librespot\audio\__init__.py", line 789, in load_track original = self.__session.api().get_metadata_4_track( File "C:\Users\[USER]\pipx\venvs\zotify\lib\site-packages\librespot\core.py", line 169, in get_metadata_4_track ApiClient.StatusCodeException.check_status(response) File "C:\Users\[USER]\pipx\venvs\zotify\lib\site-packages\librespot\core.py", line 326, in check_status raise ApiClient.StatusCodeException(response) librespot.core.ApiClient.StatusCodeException: 500 DEBUG Total API Calls: 1 **Config File** { "ROOT_PATH": "~/Music/Zotify Music", "SAVE_CREDENTIALS": "True", "CREDENTIALS_LOCATION": "", "OUTPUT": "", "OUTPUT_PLAYLIST": "{playlist}/{song_name}", "OUTPUT_PLAYLIST_EXT": "{playlist}/{playlist_num}_{artist}_{song_name}", "OUTPUT_LIKED_SONGS": "Liked Songs/{artist}_{song_name}", "OUTPUT_SINGLE": "{artist}/{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": "ogg", "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": "True", "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", "OAUTH_ADDRESS": "0.0.0.0", "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" } **Zotify Version** v0.9.0 **Additional Context** I did just recently install this branch after having installed the original zotify-dev branch awhile back (which also has this same issue). I renamed the folder containing the old 'zotify.exe', and when running this branch of zotify, have been changing the directory to the containing folder for zotify (C:\Users\[USER]\pipx\venvs\zotify\Scripts), then running the 'zotify' command. I'm unsure if there are leftover files from the old install that would cause issues? However when I use this approach I'm able to use commands (such as --version) not implemented in the old branch of zotify
kerem 2026-02-27 04:57:13 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@ariririos commented on GitHub (Aug 6, 2025):

I am having the same issue on Arch Linux starting today.
uname -a:
Linux aris-server 6.15.8-arch1-2 #1 SMP PREEMPT_DYNAMIC Tue, 29 Jul 2025 15:05:00 +0000 x86_64 GNU/Linux

zotify --version:
Zotify 0.9.0

zotify stacktraces:

Traceback (most recent call last):
  File "/home/aririos/.local/share/pipx/venvs/zotify/lib/python3.13/site-packages/zotify/track.py", line 292, in download_track
    stream = Zotify.get_content_stream(track, Zotify.DOWNLOAD_QUALITY)
  File "/home/aririos/.local/share/pipx/venvs/zotify/lib/python3.13/site-packages/zotify/zotify.py", line 65, in get_content_stream
    raise e
  File "/home/aririos/.local/share/pipx/venvs/zotify/lib/python3.13/site-packages/zotify/zotify.py", line 57, in get_content_stream
    return cls.SESSION.content_feeder().load(content_id, VorbisOnlyAudioQuality(quality), False, None)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/aririos/.local/share/pipx/venvs/zotify/lib/python3.13/site-packages/librespot/audio/__init__.py", line 741, in load
    return self.load_track(playable_id, audio_quality_picker, preload,
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                           halt_listener)
                           ^^^^^^^^^^^^^^
  File "/home/aririos/.local/share/pipx/venvs/zotify/lib/python3.13/site-packages/librespot/audio/__init__.py", line 793, in load_track
    raise RuntimeError("Cannot get alternative track")
RuntimeError: Cannot get alternative track

        [∙∙●] Fetching track information...                                                                                                   [∙●∙] Preparing download...                                                                                                   
DEBUG
Duplicate Check
File Already Exists: False
song_id in Local Archive: True
song_id in Global Archive: True

        [∙∙●] Preparing download...                                                                                                   
###   SKIPPING:  "The Killers - Somebody Told Me" (TRACK ALREADY EXISTS)   ###

        [∙∙●] Fetching track information...                                                                                                   [●∙∙] Preparing download...                                                                                                   
DEBUG
Duplicate Check
File Already Exists: False
song_id in Local Archive: False
song_id in Global Archive: False

        [∙∙●] Preparing download...                                                                                                   
###   ERROR:  SKIPPING SONG - GENERAL DOWNLOAD ERROR   ###
###   Track_Label: The Killers - All These Things That I've Done - Track_ID: 5vollujufHY0jMZxx77VWr   ###

######################################################################################################################################
{ 'album': 'Hot Fuss',
  'album_artists': ['The Killers'],
  'album_id': '4piJq7R3gjUOxnYs6lDCTg',
  'album_num': '05',
  'total_discs': 1}
######################################################################################################################################

Traceback (most recent call last):
  File "/home/aririos/.local/share/pipx/venvs/zotify/lib/python3.13/site-packages/zotify/track.py", line 292, in download_track
    stream = Zotify.get_content_stream(track, Zotify.DOWNLOAD_QUALITY)
  File "/home/aririos/.local/share/pipx/venvs/zotify/lib/python3.13/site-packages/zotify/zotify.py", line 57, in get_content_stream
    return cls.SESSION.content_feeder().load(content_id, VorbisOnlyAudioQuality(quality), False, None)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/aririos/.local/share/pipx/venvs/zotify/lib/python3.13/site-packages/librespot/audio/__init__.py", line 741, in load
    return self.load_track(playable_id, audio_quality_picker, preload,
           ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                           halt_listener)
                           ^^^^^^^^^^^^^^
  File "/home/aririos/.local/share/pipx/venvs/zotify/lib/python3.13/site-packages/librespot/audio/__init__.py", line 789, in load_track
    original = self.__session.api().get_metadata_4_track(
        track_id_or_track)
  File "/home/aririos/.local/share/pipx/venvs/zotify/lib/python3.13/site-packages/librespot/core.py", line 169, in get_metadata_4_track
    ApiClient.StatusCodeException.check_status(response)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
  File "/home/aririos/.local/share/pipx/venvs/zotify/lib/python3.13/site-packages/librespot/core.py", line 326, in check_status
    raise ApiClient.StatusCodeException(response)
librespot.core.ApiClient.StatusCodeException: 500

config-DEBUG.json:

{
    "DEBUG": "True",
    "ROOT_PATH": "/media/aririos/Files/zotify",
    "SAVE_CREDENTIALS": "True",
    "CREDENTIALS_LOCATION": "/media/aririos/Files/zotify/",
    "OUTPUT": "",
    "OUTPUT_PLAYLIST": "{playlist}/{artist}_{song_name}",
    "OUTPUT_PLAYLIST_EXT": "{playlist}/{playlist_num}_{artist}_{song_name}",
    "OUTPUT_LIKED_SONGS": "Liked Songs/{artist}_{song_name}",
    "OUTPUT_SINGLE": "{artist}/{album}/{artist}_{song_name}",
    "OUTPUT_ALBUM": "{artist}/{album}/{album_num}_{artist}_{song_name}",
    "ROOT_PODCAST_PATH": "",
    "SPLIT_ALBUM_DISCS": "False",
    "MAX_FILENAME_LENGTH": "0",
    "BULK_WAIT_TIME": "5",
    "DOWNLOAD_REAL_TIME": "True",
    "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": "ogg",
    "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": "True",
    "LYRICS_LOCATION": "",
    "ALWAYS_CHECK_LYRICS": "False",
    "LYRICS_MD_HEADER": "False",
    "LANGUAGE": "en",
    "STRICT_LIBRARY_VERIFY": "True",
    "MD_DISC_TRACK_TOTALS": "True",
    "MD_SAVE_GENRES": "False",
    "MD_ALLGENRES": "False",
    "MD_GENREDELIMITER": ",",
    "MD_ARTISTDELIMITER": ", ",
    "MD_SAVE_LYRICS": "True",
    "ALBUM_ART_JPG_FILE": "False",
    "RETRY_ATTEMPTS": "1",
    "CHUNK_SIZE": "20000",
    "OAUTH_ADDRESS": "0.0.0.0",
    "REDIRECT_ADDRESS": "127.0.0.1",
    "PRINT_SPLASH": "False",
    "PRINT_PROGRESS_INFO": "True",
    "PRINT_SKIPS": "True",
    "PRINT_DOWNLOADS": "False",
    "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:3161076778 --> @ariririos commented on GitHub (Aug 6, 2025): I am having the same issue on Arch Linux starting today. `uname -a`: `Linux aris-server 6.15.8-arch1-2 #1 SMP PREEMPT_DYNAMIC Tue, 29 Jul 2025 15:05:00 +0000 x86_64 GNU/Linux` `zotify --version`: `Zotify 0.9.0` zotify stacktraces: ``` Traceback (most recent call last): File "/home/aririos/.local/share/pipx/venvs/zotify/lib/python3.13/site-packages/zotify/track.py", line 292, in download_track stream = Zotify.get_content_stream(track, Zotify.DOWNLOAD_QUALITY) File "/home/aririos/.local/share/pipx/venvs/zotify/lib/python3.13/site-packages/zotify/zotify.py", line 65, in get_content_stream raise e File "/home/aririos/.local/share/pipx/venvs/zotify/lib/python3.13/site-packages/zotify/zotify.py", line 57, in get_content_stream return cls.SESSION.content_feeder().load(content_id, VorbisOnlyAudioQuality(quality), False, None) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/aririos/.local/share/pipx/venvs/zotify/lib/python3.13/site-packages/librespot/audio/__init__.py", line 741, in load return self.load_track(playable_id, audio_quality_picker, preload, ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ halt_listener) ^^^^^^^^^^^^^^ File "/home/aririos/.local/share/pipx/venvs/zotify/lib/python3.13/site-packages/librespot/audio/__init__.py", line 793, in load_track raise RuntimeError("Cannot get alternative track") RuntimeError: Cannot get alternative track [∙∙●] Fetching track information... [∙●∙] Preparing download... DEBUG Duplicate Check File Already Exists: False song_id in Local Archive: True song_id in Global Archive: True [∙∙●] Preparing download... ### SKIPPING: "The Killers - Somebody Told Me" (TRACK ALREADY EXISTS) ### [∙∙●] Fetching track information... [●∙∙] Preparing download... DEBUG Duplicate Check File Already Exists: False song_id in Local Archive: False song_id in Global Archive: False [∙∙●] Preparing download... ### ERROR: SKIPPING SONG - GENERAL DOWNLOAD ERROR ### ### Track_Label: The Killers - All These Things That I've Done - Track_ID: 5vollujufHY0jMZxx77VWr ### ###################################################################################################################################### { 'album': 'Hot Fuss', 'album_artists': ['The Killers'], 'album_id': '4piJq7R3gjUOxnYs6lDCTg', 'album_num': '05', 'total_discs': 1} ###################################################################################################################################### Traceback (most recent call last): File "/home/aririos/.local/share/pipx/venvs/zotify/lib/python3.13/site-packages/zotify/track.py", line 292, in download_track stream = Zotify.get_content_stream(track, Zotify.DOWNLOAD_QUALITY) File "/home/aririos/.local/share/pipx/venvs/zotify/lib/python3.13/site-packages/zotify/zotify.py", line 57, in get_content_stream return cls.SESSION.content_feeder().load(content_id, VorbisOnlyAudioQuality(quality), False, None) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/aririos/.local/share/pipx/venvs/zotify/lib/python3.13/site-packages/librespot/audio/__init__.py", line 741, in load return self.load_track(playable_id, audio_quality_picker, preload, ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ halt_listener) ^^^^^^^^^^^^^^ File "/home/aririos/.local/share/pipx/venvs/zotify/lib/python3.13/site-packages/librespot/audio/__init__.py", line 789, in load_track original = self.__session.api().get_metadata_4_track( track_id_or_track) File "/home/aririos/.local/share/pipx/venvs/zotify/lib/python3.13/site-packages/librespot/core.py", line 169, in get_metadata_4_track ApiClient.StatusCodeException.check_status(response) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^ File "/home/aririos/.local/share/pipx/venvs/zotify/lib/python3.13/site-packages/librespot/core.py", line 326, in check_status raise ApiClient.StatusCodeException(response) librespot.core.ApiClient.StatusCodeException: 500 ``` config-DEBUG.json: ``` { "DEBUG": "True", "ROOT_PATH": "/media/aririos/Files/zotify", "SAVE_CREDENTIALS": "True", "CREDENTIALS_LOCATION": "/media/aririos/Files/zotify/", "OUTPUT": "", "OUTPUT_PLAYLIST": "{playlist}/{artist}_{song_name}", "OUTPUT_PLAYLIST_EXT": "{playlist}/{playlist_num}_{artist}_{song_name}", "OUTPUT_LIKED_SONGS": "Liked Songs/{artist}_{song_name}", "OUTPUT_SINGLE": "{artist}/{album}/{artist}_{song_name}", "OUTPUT_ALBUM": "{artist}/{album}/{album_num}_{artist}_{song_name}", "ROOT_PODCAST_PATH": "", "SPLIT_ALBUM_DISCS": "False", "MAX_FILENAME_LENGTH": "0", "BULK_WAIT_TIME": "5", "DOWNLOAD_REAL_TIME": "True", "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": "ogg", "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": "True", "LYRICS_LOCATION": "", "ALWAYS_CHECK_LYRICS": "False", "LYRICS_MD_HEADER": "False", "LANGUAGE": "en", "STRICT_LIBRARY_VERIFY": "True", "MD_DISC_TRACK_TOTALS": "True", "MD_SAVE_GENRES": "False", "MD_ALLGENRES": "False", "MD_GENREDELIMITER": ",", "MD_ARTISTDELIMITER": ", ", "MD_SAVE_LYRICS": "True", "ALBUM_ART_JPG_FILE": "False", "RETRY_ATTEMPTS": "1", "CHUNK_SIZE": "20000", "OAUTH_ADDRESS": "0.0.0.0", "REDIRECT_ADDRESS": "127.0.0.1", "PRINT_SPLASH": "False", "PRINT_PROGRESS_INFO": "True", "PRINT_SKIPS": "True", "PRINT_DOWNLOADS": "False", "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

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

Apparently this issue may be with librespot itself: https://github.com/librespot-org/librespot/issues/1527, sounds like within the past few days something broke within librespot that has been causing issues with playing songs

<!-- gh-comment-id:3161192457 --> @NickDegrasse commented on GitHub (Aug 6, 2025): Apparently this issue may be with librespot itself: https://github.com/librespot-org/librespot/issues/1527, sounds like within the past few days something broke within librespot that has been causing issues with playing songs
Author
Owner

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

It sounds like there is a fix in a branch of librespot written in go (https://github.com/devgianlu/go-librespot/issues/189#issuecomment-3160813582), however this issue is still open in the python edition of librespot (https://github.com/kokarare1212/librespot-python/issues/308). I'm assuming once this has been solved on the librespot side, simply reinstalling zotify should pull the most recent version of librespot with this fix?

<!-- gh-comment-id:3161361149 --> @NickDegrasse commented on GitHub (Aug 6, 2025): It sounds like there is a fix in a branch of librespot written in go (https://github.com/devgianlu/go-librespot/issues/189#issuecomment-3160813582), however this issue is still open in the python edition of librespot (https://github.com/kokarare1212/librespot-python/issues/308). I'm assuming once this has been solved on the librespot side, simply reinstalling zotify should pull the most recent version of librespot with this fix?
Author
Owner

@TNAS123 commented on GitHub (Aug 6, 2025):

You can download this merge/updated file and replace your core.py with it. I confirmed it fixed it for me.
github.com/kokarare1212/librespot-python@336fa9acc6/librespot/core.py

<!-- gh-comment-id:3161855255 --> @TNAS123 commented on GitHub (Aug 6, 2025): You can download this merge/updated file and replace your `core.py` with it. I confirmed it fixed it for me. https://github.com/kokarare1212/librespot-python/blob/336fa9acc638abcf1908b4ab10e4b3f22ec64151/librespot/core.py
Author
Owner

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

You can download this merge/updated file and replace your core.py with it. I confirmed it fixed it for me. github.com/kokarare1212/librespot-python@336fa9acc6/librespot/core.py

This appears to be working for me for now, thanks for the tip!

<!-- gh-comment-id:3161897673 --> @NickDegrasse commented on GitHub (Aug 6, 2025): > You can download this merge/updated file and replace your `core.py` with it. I confirmed it fixed it for me. https://github.com/kokarare1212/librespot-python/blob/336fa9acc638abcf1908b4ab10e4b3f22ec64151/librespot/core.py This appears to be working for me for now, thanks for the tip!
Author
Owner

@nefariouslegion commented on GitHub (Aug 7, 2025):

You can download this merge/updated file and replace your core.py with it. I confirmed it fixed it for me. github.com/kokarare1212/librespot-python@336fa9acc6/librespot/core.py

I was having the same issue and this seems to have fixed it for me too. Thank you!

<!-- gh-comment-id:3162020909 --> @nefariouslegion commented on GitHub (Aug 7, 2025): > You can download this merge/updated file and replace your `core.py` with it. I confirmed it fixed it for me. https://github.com/kokarare1212/librespot-python/blob/336fa9acc638abcf1908b4ab10e4b3f22ec64151/librespot/core.py I was having the same issue and this seems to have fixed it for me too. Thank you!
Author
Owner

@Googolplexed0 commented on GitHub (Aug 7, 2025):

I had assumed it would be an issue with the libraries this project relies on, rather than anything here failing. There has probably been another round of API changes that are causing this bug, and several of the other bugs, with logging in and fetching data. Doing pip install --force-reinstall git+https://github.com/kokarare1212/librespot-python will probably fix it.

<!-- gh-comment-id:3162247515 --> @Googolplexed0 commented on GitHub (Aug 7, 2025): I had assumed it would be an issue with the libraries this project relies on, rather than anything here failing. There has probably been another round of API changes that are causing this bug, and several of the other bugs, with logging in and fetching data. Doing `pip install --force-reinstall git+https://github.com/kokarare1212/librespot-python` will probably fix it.
Author
Owner

@TheOriginalSpacerat commented on GitHub (Aug 7, 2025):

I answer myself: I fixed it. Possible interesting for some other people with the same problem:

First uninstall the old librespot:
pip uninstall librespot

Then install the snapshot version:
pip install git+https://github.com/kokarare1212/librespot-python

That fixed it for me.


You can download this merge/updated file and replace your core.py with it. I confirmed it fixed it for me. github.com/kokarare1212/librespot-python@336fa9acc6/librespot/core.py

Thank you for the tip. I previously did a force reinstall via pip: pip install --force-reinstall librespot
That did not bring any success so far. In the second step, I replaced the core.py with the suggested one.
Unfortunately, a new problem occurred after I replaced core.py in the librespot directory:

Traceback (most recent call last):
  File "/usr/local/bin/zotify", line 5, in <module>
    from zotify.__main__ import main
  File "/usr/local/lib/python3.11/dist-packages/zotify/__init__.py", line 15, in <module>
    from librespot.core import (
  File "/usr/local/lib/python3.11/dist-packages/librespot/core.py", line 32, in <module>
    from librespot import util, oauth
ImportError: cannot import name 'oauth' from 'librespot' (/usr/local/lib/python3.11/dist-packages/librespot/__init__.py)

I also cannot find any oauth.py in that directory, or in any directory. Can someone help? Thanks in advance.

<!-- gh-comment-id:3163220308 --> @TheOriginalSpacerat commented on GitHub (Aug 7, 2025): I answer myself: I fixed it. Possible interesting for some other people with the same problem: First uninstall the old librespot: `pip uninstall librespot` Then install the snapshot version: `pip install git+https://github.com/kokarare1212/librespot-python` That fixed it for me. --------------------------------------------------------------------------------------------------------------------------- > You can download this merge/updated file and replace your `core.py` with it. I confirmed it fixed it for me. https://github.com/kokarare1212/librespot-python/blob/336fa9acc638abcf1908b4ab10e4b3f22ec64151/librespot/core.py Thank you for the tip. I previously did a force reinstall via pip: pip install --force-reinstall librespot That did not bring any success so far. In the second step, I replaced the core.py with the suggested one. Unfortunately, a new problem occurred after I replaced core.py in the librespot directory: ``` Traceback (most recent call last): File "/usr/local/bin/zotify", line 5, in <module> from zotify.__main__ import main File "/usr/local/lib/python3.11/dist-packages/zotify/__init__.py", line 15, in <module> from librespot.core import ( File "/usr/local/lib/python3.11/dist-packages/librespot/core.py", line 32, in <module> from librespot import util, oauth ImportError: cannot import name 'oauth' from 'librespot' (/usr/local/lib/python3.11/dist-packages/librespot/__init__.py) ``` I also cannot find any oauth.py in that directory, or in any directory. Can someone help? Thanks in advance.
Author
Owner

@lolo83560 commented on GitHub (Aug 7, 2025):

I just applied this quoted below and it worked just great for me too ! 👍
So no need to go messing around with the local copy of librespot/core.py IMHO...

I answer myself: I fixed it. Possible interesting for some other people with the same problem:

First uninstall the old librespot: pip uninstall librespot

Then install the snapshot version: pip install git+https://github.com/kokarare1212/librespot-python

That fixed it for me.

<!-- gh-comment-id:3163345305 --> @lolo83560 commented on GitHub (Aug 7, 2025): I just applied this quoted below and it worked just great for me too ! 👍 So no need to go messing around with the local copy of librespot/core.py IMHO... > I answer myself: I fixed it. Possible interesting for some other people with the same problem: > > First uninstall the old librespot: `pip uninstall librespot` > > Then install the snapshot version: `pip install git+https://github.com/kokarare1212/librespot-python` > > That fixed it for me.
Author
Owner

@lolo83560 commented on GitHub (Aug 7, 2025):

I had assumed it would be an issue with the libraries this project relies on, rather than anything here failing. There has probably been another round of API changes that are causing this bug, and several of the other bugs, with logging in and fetching data. Doing pip install --force-reinstall librespot will probably fix it.

no, unfortunately it does not ... until the main branch of librespot gets officially patched, I guess

<!-- gh-comment-id:3163354912 --> @lolo83560 commented on GitHub (Aug 7, 2025): > I had assumed it would be an issue with the libraries this project relies on, rather than anything here failing. There has probably been another round of API changes that are causing this bug, and several of the other bugs, with logging in and fetching data. Doing `pip install --force-reinstall librespot` will probably fix it. no, unfortunately it does not ... until the main branch of librespot gets officially patched, I guess
Author
Owner

@matseee commented on GitHub (Aug 7, 2025):

I had assumed it would be an issue with the libraries this project relies on, rather than anything here failing. There has probably been another round of API changes that are causing this bug, and several of the other bugs, with logging in and fetching data. Doing pip install --force-reinstall librespot will probably fix it.

no, unfortunately it does not ... until the main branch of librespot gets officially patched, I guess

A reinstall of zotify should also work.

pipx uninstall zotify
pipx install git+https://github.com/Googolplexed0/zotify.git
<!-- gh-comment-id:3163397764 --> @matseee commented on GitHub (Aug 7, 2025): > > I had assumed it would be an issue with the libraries this project relies on, rather than anything here failing. There has probably been another round of API changes that are causing this bug, and several of the other bugs, with logging in and fetching data. Doing `pip install --force-reinstall librespot` will probably fix it. > > no, unfortunately it does not ... until the main branch of librespot gets officially patched, I guess A reinstall of zotify should also work. ``` pipx uninstall zotify pipx install git+https://github.com/Googolplexed0/zotify.git ```
Author
Owner

@lolo83560 commented on GitHub (Aug 7, 2025):

A reinstall of zotify should also work.

yes ... unless you're using your own modded fork of the original zotify trunk and not the present one from Googolplexed0
(such is my case)

In this case, the most generic & convenient way to force the use of librespot-python package from kokarare1212, instead of the original one from librespot-org, is to add a setup.py file in your local zotify root directory (= where are stored all the .py sources).

Setup.py contents

from setuptools import setup, find_packages

setup(
    name='MyZotify',
    version='1.0',
    packages=find_packages(),
    install_requires=[
        'librespot @ git+https://github.com/kokarare1212/librespot-python.git,
    ],
)

<!-- gh-comment-id:3163925094 --> @lolo83560 commented on GitHub (Aug 7, 2025): > A reinstall of zotify should also work. yes ... unless you're using your own modded fork of the original zotify trunk and not the present one from Googolplexed0 (such is my case) In this case, the most generic & convenient way to force the use of librespot-python package from kokarare1212, instead of the original one from librespot-org, is to add a setup.py file in your local zotify root directory (= where are stored all the .py sources). Setup.py contents ``` from setuptools import setup, find_packages setup( name='MyZotify', version='1.0', packages=find_packages(), install_requires=[ 'librespot @ git+https://github.com/kokarare1212/librespot-python.git, ], ) ```
Author
Owner

@U2EZNeko commented on GitHub (Aug 7, 2025):

Librespot core update fixed it for me too.

<!-- gh-comment-id:3165225518 --> @U2EZNeko commented on GitHub (Aug 7, 2025): Librespot core update fixed it for me too.
Author
Owner

@Googolplexed0 commented on GitHub (Aug 8, 2025):

Doing pip install --force-reinstall git+https://github.com/kokarare1212/librespot-python will probably fix it.

Confirmed running this fixes the issue. I asked the repo owner to create a new release so that pip install --force-reinstall librespot will be sufficient.

<!-- gh-comment-id:3166273194 --> @Googolplexed0 commented on GitHub (Aug 8, 2025): > Doing `pip install --force-reinstall git+https://github.com/kokarare1212/librespot-python` will probably fix it. Confirmed running this fixes the issue. I asked the repo owner to create a new release so that `pip install --force-reinstall librespot` will be sufficient.
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#38
No description provided.