caseychu / spotify-backup

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

Error in log function + workaround #17

Closed GregoryGleibman closed 4 years ago

GregoryGleibman commented 4 years ago

Hi, I got this error: line 115, in log sys.stdout.buffer.write('[{}] {}\n'.format(time.strftime('%I:%M:%S'), str).encode(sys.stdout.encoding, errors='replace')) AttributeError: 'PseudoOutputFile' object has no attribute 'buffer'

As a workaround, I disabled this function.

Also, I suggest adding to readme.md:

Your liked songs won't be saved by this script, unless you convert them to a playlist. You can do it by selecting all liked songs in Spotify for Windows, by pressing ctrl+A, and then right click and add to playlist.

Thanks for this script, it helped me avoid user lock in, and I could cancel Spotify without losing my data.

caseychu commented 4 years ago

Fixed!