caseychu / spotify-backup

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

TypeError when processing playlist "Your Time Capsule" #14

Closed erikw closed 4 years ago

erikw commented 5 years ago

First - thanks for this great script! I run it from a cronjob regularly, as my playlists are very dear to me and I can not afford to let Spotify own them. Thanks!

So for the issue:

The Spotify meta playlist "Your Time Capsule" causes the following error:

$ spotify-backup.py --format txt playlist.txt
[08:14:09] Loading playlist: Your Time Capsule (55 songs)
Traceback (most recent call last):
  File "/Users/erikw/src/github.com/caseychu/spotify-backup/spotify-backup.py", line 170, in <module>
    main()
  File "/Users/erikw/src/github.com/caseychu/spotify-backup/spotify-backup.py", line 161, in main
    uri=track['track']['uri'],
TypeError: 'NoneType' object is not subscriptable
2 tries left.
stilsch commented 5 years ago

got the same with: [08:07:42] Loading playlist: 16 Horsepower – Yours Truly (25 songs) Traceback (most recent call last): File "/home/steffen/bin/spotify-backup.py", line 170, in main() File "/home/steffen/bin/spotify-backup.py", line 161, in main uri=track['track']['uri'], TypeError: 'NoneType' object is not subscriptable

erikw commented 4 years ago

I don't get this error anymore. It somehow disappeared.