[GH-ISSUE #38] [Bug Report] Crashes on getting lyrics #31

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

Originally created by @DerKO9 on GitHub (Jul 29, 2025).
Original GitHub issue: https://github.com/Googolplexed0/zotify/issues/38

Originally assigned to: @Googolplexed0 on GitHub.

Bug Description
I'm getting a "IndexError: list index out of range" when trying to download "Beastie Boys - So What'Cha Want" (https://open.spotify.com/track/5h9mwffuipb2TSeTFp8Pu0). It looks like its failing to get the lyrics. I have tried multiple times and it seems to consistent on this song. I also saw this same error happen for some other songs.

Error Traceback / Logs

[∙∙∙] Logging in...
[∙●∙] Fetching track information...
[∙●∙] Preparing download...
[∙●∙] Fetching genre information...
[∙●∙] Fetching lyrics...
###   ERROR:  SKIPPING SONG - GENERAL DOWNLOAD ERROR   ###
###   Track_Label: Beastie Boys - So What'Cha Want - Track_ID: 25pl7kV4OxafIc9wPAggYf   ###

######################################################################################################################################################################################################
{ 'm3u8_path': PosixPath('/home/moosen/storage/music/ZotifyMusic/Playlist1.m3u8'),
  'playlist': 'Playlist1',
  'playlist_id': '1v7ucrBHCvTUiWGeX9OS8l',
  'playlist_num': '01',
  'playlist_track': "So What'Cha Want",
  'playlist_track_id': '5h9mwffuipb2TSeTFp8Pu0'}
######################################################################################################################################################################################################

Traceback (most recent call last):
  File "/home/moosen/.local/share/pipx/venvs/zotify/lib/python3.10/site-packages/zotify/track.py", line 330, in download_track
    lyrics = handle_lyrics(track_id, filedir, track_metadata)
  File "/home/moosen/.local/share/pipx/venvs/zotify/lib/python3.10/site-packages/zotify/track.py", line 127, in handle_lyrics
    lyrics = get_track_lyrics(track_id)
  File "/home/moosen/.local/share/pipx/venvs/zotify/lib/python3.10/site-packages/zotify/track.py", line 106, in get_track_lyrics
    tss.append(f"{timestamp}".zfill(5) + f" {ts.split(':')[0]} {ts.split(':')[1].replace('.', ' ')}\n")
IndexError: list index out of range

Config File

{
    "ROOT_PATH": "~/storage/music/ZotifyMusic",
    "SAVE_CREDENTIALS": "True",
    "CREDENTIALS_LOCATION": "~/.config/zotify",
    "OUTPUT": "",
    "OUTPUT_PLAYLIST": "{artist}_{song_name}",
    "OUTPUT_PLAYLIST_EXT": "{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": "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": "False",
    "EXPORT_M3U8": "True",
    "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",
    "MD_DISC_TRACK_TOTALS": "True",
    "MD_SAVE_GENRES": "True",
    "MD_ALLGENRES": "True",
    "MD_GENREDELIMITER": "",
    "MD_ARTISTDELIMITER": "",
    "MD_SAVE_LYRICS": "True",
    "ALBUM_ART_JPG_FILE": "False",
    "RETRY_ATTEMPTS": "3",
    "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
Other songs this error shows for:

Originally created by @DerKO9 on GitHub (Jul 29, 2025). Original GitHub issue: https://github.com/Googolplexed0/zotify/issues/38 Originally assigned to: @Googolplexed0 on GitHub. **Bug Description** I'm getting a "IndexError: list index out of range" when trying to download "Beastie Boys - So What'Cha Want" (https://open.spotify.com/track/5h9mwffuipb2TSeTFp8Pu0). It looks like its failing to get the lyrics. I have tried multiple times and it seems to consistent on this song. I also saw this same error happen for some other songs. **Error Traceback / Logs** ``` [∙∙∙] Logging in... [∙●∙] Fetching track information... [∙●∙] Preparing download... [∙●∙] Fetching genre information... [∙●∙] Fetching lyrics... ### ERROR: SKIPPING SONG - GENERAL DOWNLOAD ERROR ### ### Track_Label: Beastie Boys - So What'Cha Want - Track_ID: 25pl7kV4OxafIc9wPAggYf ### ###################################################################################################################################################################################################### { 'm3u8_path': PosixPath('/home/moosen/storage/music/ZotifyMusic/Playlist1.m3u8'), 'playlist': 'Playlist1', 'playlist_id': '1v7ucrBHCvTUiWGeX9OS8l', 'playlist_num': '01', 'playlist_track': "So What'Cha Want", 'playlist_track_id': '5h9mwffuipb2TSeTFp8Pu0'} ###################################################################################################################################################################################################### Traceback (most recent call last): File "/home/moosen/.local/share/pipx/venvs/zotify/lib/python3.10/site-packages/zotify/track.py", line 330, in download_track lyrics = handle_lyrics(track_id, filedir, track_metadata) File "/home/moosen/.local/share/pipx/venvs/zotify/lib/python3.10/site-packages/zotify/track.py", line 127, in handle_lyrics lyrics = get_track_lyrics(track_id) File "/home/moosen/.local/share/pipx/venvs/zotify/lib/python3.10/site-packages/zotify/track.py", line 106, in get_track_lyrics tss.append(f"{timestamp}".zfill(5) + f" {ts.split(':')[0]} {ts.split(':')[1].replace('.', ' ')}\n") IndexError: list index out of range ``` **Config File** ``` { "ROOT_PATH": "~/storage/music/ZotifyMusic", "SAVE_CREDENTIALS": "True", "CREDENTIALS_LOCATION": "~/.config/zotify", "OUTPUT": "", "OUTPUT_PLAYLIST": "{artist}_{song_name}", "OUTPUT_PLAYLIST_EXT": "{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": "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": "False", "EXPORT_M3U8": "True", "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", "MD_DISC_TRACK_TOTALS": "True", "MD_SAVE_GENRES": "True", "MD_ALLGENRES": "True", "MD_GENREDELIMITER": "", "MD_ARTISTDELIMITER": "", "MD_SAVE_LYRICS": "True", "ALBUM_ART_JPG_FILE": "False", "RETRY_ATTEMPTS": "3", "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** Other songs this error shows for: - "Zedd - The Middle" (https://open.spotify.com/track/09IStsImFySgyp0pIQdqAc?si=bc7a18edd4684f24) - "Bastille - The Anchor" (https://open.spotify.com/track/0qwpBiu4uhW9hiQ6P4NePz?si=f2ed3262180a4b0d)
kerem 2026-02-27 04:57:11 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@Googolplexed0 commented on GitHub (Jul 29, 2025):

Good catch. Should be fixed with 7701689.

<!-- gh-comment-id:3134345802 --> @Googolplexed0 commented on GitHub (Jul 29, 2025): Good catch. Should be fixed with 7701689.
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#31
No description provided.