Mopidy extension for playing music from Spotify
Project description
Mopidy extension for playing music from Spotify.
Status :warning:
Mopidy-Spotify currently has no support for the following:
Seeking
Gapless playback
Volume normalization
Saving items to My Music (#108) - possible via web API
Podcasts (#201) - unavailable
Radio (#9) - unavailable
Spotify Connect (#14) - unavailable
Working support for the following features is currently available:
Playback
Search
Playlists (read-only)
Top lists and Your Music (read-only)
Lookup by URI
Dependencies
A Spotify Premium subscription. Mopidy-Spotify will not work with Spotify Free, just Spotify Premium.
A non-Facebook Spotify username and password. If you created your account through Facebook you’ll need to create a “device password” to be able to use Mopidy-Spotify. Go to http://www.spotify.com/account/set-device-password/, login with your Facebook account, and follow the instructions. However, sometimes that process can fail for users with Facebook logins, in which case you can create an app-specific password on Facebook by going to facebook.com > Settings > Security > App passwords > Generate app passwords, and generate one to use with Mopidy-Spotify.
Mopidy >= 3.4. The music server that Mopidy-Spotify extends.
gst-plugins-spotify >= 0.10. The GStreamer Rust Plugin to stream Spotify audio, based on librespot. This plugin is not yet available from apt.mopidy.com. It must be either built from source or Debian packages are available for some platforms.
Verify the GStreamer spotify plugin is correctly installed:
gst-inspect-1.0 spotify
Installation
Install by running:
sudo python3 -m pip install --break-system-packages https://github.com/mopidy/mopidy-spotify/archive/refs/tags/v5.0.0a1.zip
This is currently the only supported installation method.
Configuration
Before starting Mopidy, you must add your Spotify Premium username and password to your Mopidy configuration file and also visit https://mopidy.com/ext/spotify/#authentication to authorize this extension against your Spotify account:
[spotify] username = alice password = secret client_id = ... client_id value you got from mopidy.com ... client_secret = ... client_secret value you got from mopidy.com ...
The following configuration values are available:
spotify/enabled: If the Spotify extension should be enabled or not. Defaults to true.
spotify/username: Your Spotify Premium username. You must provide this.
spotify/password: Your Spotify Premium password. You must provide this.
spotify/client_id: Your Spotify application client id. You must provide this.
spotify/client_secret: Your Spotify application secret key. You must provide this.
spotify/bitrate: Audio bitrate in kbps. 96, 160, or 320. Defaults to 160.
spotify/volume_normalization: Whether volume normalization is active or not. Defaults to true.
spotify/timeout: Seconds before giving up waiting for search results, etc. Defaults to 10.
spotify/allow_cache: Whether to allow caching. The cache is stored in a “spotify” directory within Mopidy’s core/cache_dir. Defaults to true.
spotify/cache_size: Maximum cache size in MiB. Set to 0 for unlimited. Defaults to 8192.
spotify/allow_playlists: Whether or not playlists should be exposed. Defaults to true.
spotify/search_album_count: Maximum number of albums returned in search results. Number between 0 and 50. Defaults to 20.
spotify/search_artist_count: Maximum number of artists returned in search results. Number between 0 and 50. Defaults to 10.
spotify/search_track_count: Maximum number of tracks returned in search results. Number between 0 and 50. Defaults to 50.
Project resources
Credits
Original author: Stein Magnus Jodal
Current maintainer: Nick Steel
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for Mopidy_Spotify-5.0.0a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 281f59494cd85225cf7b6db92771d39e2b28654d5e3c100984920fdbf503b14e |
|
MD5 | c2a1542f5c159e1c9475325a935911b3 |
|
BLAKE2b-256 | 2dbab26b653e2a1b4554be7e73bd792e4ffb233e11b5fd432f479426d35732aa |