fm16191 / spotify-recorder

Recorder for Spotify. Not a YouTube downloader !!!
32 stars 6 forks source link

Playlist download not working; tries editing non-existing file #4

Closed kedorlaomer closed 1 year ago

kedorlaomer commented 1 year ago

For me, the fix for bug #3 did not quite work. When starting with a fresh checkout (i. e., no songs, songs_build, playlist.json), the execution of python3 api.py <some playlist> yields a similar error at https://github.com/fm16191/spotify-recorder/blob/72ca34cfe796abd0c1b253abe1a6134a29caf850/api.py#L236 namely that filepath is the path to a non-existing file. Apparently, https://github.com/fm16191/spotify-recorder/blob/72ca34cfe796abd0c1b253abe1a6134a29caf850/api.py#L123 is called on a non-existing file name filepath which causes mutagen to fail. Can you reproduce this?

fm16191 commented 1 year ago

Hi ! You absolutely right, that was an oversight ...

fm16191 commented 1 year ago

I did closed it a bit early, please let me know if you are still having issues or if this does fix it.