caseychu / spotify-backup

A Python script that exports all of your Spotify playlists.
MIT License
847 stars 123 forks source link

TypeError while writing files #31

Closed hugolundin closed 3 years ago

hugolundin commented 3 years ago

Hi! Thank you for making a really useful script :) I used it a couple of months ago with no issues, but after merging the latest changes from master I get the following error:

[08:44:09] Writing files...
Traceback (most recent call last):
  File "<path>/spotify-backup.py", line 201, in <module>
    main()
  File "<path>/spotify-backup.py", line 192, in main
    uri=track['track']['uri'],
TypeError: 'NoneType' object is not subscriptable

Any suggestions? Thanks!

caseychu commented 3 years ago

Thanks for pointing this out! Should be fixed by https://github.com/caseychu/spotify-backup/pull/30

hugolundin commented 3 years ago

Awesome, thanks!