Could you try this version that I’ve hacked the OAuth Web API functionality into:
pip install --no-deps --upgrade https://github.com/pimusicbox/mopidy-spotify/zipball/backport-oauth
Then go to https://www.mopidy.com/authenticate/#spotify, click the button to authenticate with Spotify and copy the client_id
and client_secret
that it gives you to the [spotify]
section of /boot/config/settings.ini so it’ll end up looking something like this:
# -----------
# | Spotify |
# -----------
# https://github.com/mopidy/mopidy-spotify
[spotify]
# Supply your PREMIUM account credentials to enable Spotify
enabled = true
username = YOUR_USERNAME_HERE
password = YOUR_PASSWORD_HERE
client_id = OBTAINED_FROM_MOPIDY_AUTH_WEBPAGE
client_secret = ALSO_OBTAINED_FROM_MOPIDY_AUTH_WEBPAGE
# The bitrate, the quality of the music played by Spotify, can be set to 96, 160 (default) or 320
bitrate = 320
cache_dir = ""
Finally, restart Mopidy with service mopidy restart
and try searching.