Log1x / docker-mopidy-iris

MIT License
3 stars 4 forks source link

Spotify Plugin - Mopidy.conf #1

Open garethosborne opened 4 years ago

garethosborne commented 4 years ago

Hi @Log1x ,

Thanks for the image, works well!

One question, I want to use the Spotify integration. How can I add the client_id and client_secret to the [spotify] section of the mopidy.conf?

In Iris I currently receive "Can’t play Spotify songs - “Extension disabled".

Cheers, Gareth.

square-spade commented 4 years ago

The mopidy.conf file should be in your local

-v PATH_TO_DATA_FILES:/data

simply edit that file and restart the container.

# example mopidy.conf

[iris]
country = Spotify-based country code (defaults to nz)
locale = Spotify-based locale code (defaults to en_NZ)
spotify_authorization_url = URL to use as Spotify authentication proxy (defaults to https://jamesbarnsley.co.nz/auth_spotify.php)
lastfm_authorization_url = URL to use as LastFM authentication proxy (defaults to https://jamesbarnsley.co.nz/auth_lastfm.php)

[spotify]
client_id = The config value will appear here.
client_secret = The config value will appear here.

[spotify_web]
client_id = ... client_id value you got from mopidy.com ...
client_secret = ... client_secret value you got from mopidy.com ...

If that fails you can always just enter the container and do it internally

$ docker exec -it CONTAINER_NAME /bin/bash