johnelse / spotify-cli

CLI program for controlling the spotify desktop client
MIT License
124 stars 6 forks source link

Missing record field error - play-track, play-artist, play-album not working #10

Open radzak opened 7 years ago

radzak commented 7 years ago
➜  spotify-cli play-album "sepultura arise"
spotify-cli: internal error, uncaught exception:
             Ag_oj_run.Error("Line 6:\nMissing record field albums")
             Raised at file "src/core/lwt.ml", line 805, characters 22-23
             Called from file "src/unix/lwt_main.ml", line 34, characters 8-18
             Called from file "src/cmdliner_term.ml", line 27, characters 19-24
             Called from file "src/cmdliner.ml", line 106, characters 32-39

The same output is with play-track and play-artist, 'Missing record field tracks' and 'Missing record field artists' respectively. Remaining commands working.

johnelse commented 7 years ago

Thanks for the report, it turns out spotify have blocked unauthenticated access to the metadata API:

https://developer.spotify.com/news-stories/2017/01/27/removing-unauthenticated-calls-to-the-web-api/

I'll have to add authentication support to the underlying library, and sadly these commands are going to be broken until I've done that.