SathyaBhat / spotify-dl

Downloads songs from your Spotify Playlist
http://sathyasays.com/2015/12/29/spotify-dl-download-your-spotify-my-music-songs-as-mp3/
MIT License
1.73k stars 212 forks source link

KeyError: 'tracks' #106

Closed ljfoster97 closed 3 years ago

ljfoster97 commented 3 years ago

Not sure what is happening. I cannot get this to work as of v6 after previously using an older version on a different PC.


Starting spotify_dl
List ID: 2ZykzRtEZBJxOHeouRYrjz
List owner: 12157844456
List ID: 2ZykzRtEZBJxOHeouRYrjz
List owner: 12157844456
Saving songs to: Disco Drop #13
Traceback (most recent call last):
  File "c:\users\Admin\appdata\local\programs\python\python37\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\users\Admin\appdata\local\programs\python\python37\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python37\Scripts\spotify_dl.exe\__main__.py", line 7, in <module>
  File "c:\users\Admin\appdata\local\programs\python\python37\lib\site-packages\spotify_dl\spotify_dl.py", line 116, in spotify_dl
    songs = fetch_tracks(sp, playlist_id, current_user_id)
  File "c:\users\Admin\appdata\local\programs\python\python37\lib\site-packages\spotify_dl\spotify.py", line 28, in fetch_tracks
    for item in results['tracks']['items']:
KeyError: 'tracks'
Sentry is attempting to send 0 pending error messages
Waiting up to 2 seconds
Press Ctrl-Break to quit
SathyaBhat commented 3 years ago

Hi, yes it’s an unfortunate regression. I’ll try to fix this soon as possible, within couple of days max. Addressing #104 should fix this

rahulnegi20 commented 3 years ago

Getting same error! Help plox

SathyaBhat commented 3 years ago

this has been fixed in latest version. Please upgrade your install using

pip install spotify_dl --upgrade