Skip to content

Instantly share code, notes, and snippets.

@toan2406
Last active September 13, 2019 15:33
Show Gist options
  • Save toan2406/6514f06e79e8de0b372cfa21ada9f279 to your computer and use it in GitHub Desktop.
Save toan2406/6514f06e79e8de0b372cfa21ada9f279 to your computer and use it in GitHub Desktop.
Spotify with mopidy and ncmpcpp on OSX

Mopidy

  • Server that streams music from cloud services like Spotify
  • Install here
brew tap mopidy/mopidy
brew install mopidy
git clone git@github.com:kingosticks/mopidy-spotify.git
cd mopidy-spotify
git checkout fix/web-api-playlists-v2
[sudo] python2 setup.py build install
  • Install spotify-tunigo and spotify-web
pip install Mopidy-Spotify-Tunigo
pip install Mopidy-Spotify-Web
[spotify]
enabled = true
username = toan2406
password = xxx
client_id = xxx
client_secret = xxx
timeout = 60

[spotify_tunigo]
enabled = true

[spotify_web]
client_id = xxx
client_secret = xxx
  • Start mopidy as service
brew services start mopidy
  • Check installed ext
brew search mopidy
  • If you get ImportError: No module named gi when start mopidy
brew reinstall libffi
export PKG_CONFIG_PATH="/usr/local/opt/libffi/lib/pkgconfig"
pip install PyGObject

Ncmpcpp

  • Mopidy client
  • Install
brew install ncmpcpp
  • Start ncmpcpp and go to Browse mode (press 2), you should see [Spotify] and your playlists

Refs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment