ersel/spotify-cli-mac

Genius API / Can’t find config.json in /usr/local/lib/node_modules/spotify-cli-mac/

felixbuchholz opened this issue · 10 comments

I signed up for Genius API credentials, but didn’t find the config.json mentioned in the readme and I don’t know the right syntax to set it up myself. Thank you!

Hey dude!

I guess it's stated wrong in the docs, will fill in a PR to change that

You can find the config in ~/.config

ersel commented

Hi Felix,

Yes, you should be able to add genius credentials by editing the JSON file:

~/.spotify-cli-config.json

We'll need to update the docs.

Ow haha Not sure why i told you to edit the .config file i was gonna say the spotify-cli-config haha

ersel commented

Correct structure should be like this Felix:

{
  "spotifyClientID": “xxx",
  "spotifyClientSecret": “xxx",
  "geniusClientID": “xxx",
  "geniusClientAccessToken": “xxx"
}

So a single object with 4 keys. Hope this helps.

ersel commented

Sorry my bad, the key should be GeniusAPIClientKey as per https://github.com/ersel/spotify-cli-mac/blob/master/index.js#L23

so your config should look like:

{
  "spotifyClientID": “xxx",
  "spotifyClientSecret": “xxx",
  "GeniusAPIClientKey": “xxx"
}
ersel commented

No worries. You are welcome. 👍

Let's leave this issue open as a placeholder until the readme is updated.