Mopidy extension for playing music from Spotify
Project description
Mopidy extension for playing music from Spotify.
Dependencies
A Spotify Premium subscription. Mopidy-Spotify will not work with Spotify Free or Spotify Unlimited, just Spotify Premium.
libspotify >= 12, < 13. The official C library from the Spotify developer site. The package is available as libspotify12 from apt.mopidy.com.
pyspotify >= 1.9, < 2. The libspotify python wrapper. The package is available as python-spotify from apt.mopidy.com or pyspotify on PyPI.
Mopidy >= 0.16. The music server that Mopidy-Spotify extends.
If you install Mopidy-Spotify from apt.mopidy.com, these dependencies are installed automatically.
Installation
Install by running:
pip install Mopidy-Spotify
Or, if available, install the Debian/Ubuntu package from apt.mopidy.com.
Configuration
Before starting Mopidy, you must add your Spotify Premium username and password to your Mopidy configuration file:
[spotify] username = alice password = secret
The following configuration values are available:
spotify/enabled: If the Spotify extension should be enabled or not.
spotify/username: Your Spotify Premium username.
spotify/password: Your Spotify Premium password.
spotify/bitrate: Audio bitrate in kbps. 96, 160 or 320. Defaults to 160.
spotify/timeout: Seconds before giving up waiting for search results, etc. Defaults to 10 seconds.
spotify/cache_dir: The dir where the Spotify extension caches data. Defaults to $XDG_CACHE_DIR/mopidy/spotify, which usually means ~/.cache/mopidy/spotify. If set to an empty string, caching is disabled.
spotify/settings_dir: The dir where the Spotify extension stores libspotify settings. Defaults to $XDG_CONFIG_DIR/mopidy/spotify, which usually means ~/.config/mopidy/spotify.
Project resources
Changelog
v1.0.2 (2013-11-19)
Add spotify/settings_dir config value so that libspotify settings can be stored to another location than the libspotify cache. This also allows spotify/cache_dir to be unset, since settings are now using it’s own config value.
Make the spotify/cache_dir config value optional, so that it can be set to an empty string to disable caching.
v1.0.1 (2013-10-28)
Support searches from Mopidy that are using the albumartist field type, added in Mopidy 0.16.
Ignore the track_no field in search queries, added in Mopidy 0.16.
Abort Spotify searches immediately if the search query is empty instead of waiting for the 10s timeout before returning an empty search result.
v1.0.0 (2013-10-08)
Moved extension out of the main Mopidy project.
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-1.0.2-py27-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be9b9e088d741ab50b241334944c2c5452f7ba0c1b7d7321427cb5758133b481 |
|
MD5 | 329593cb46f6ea3c4afa055ff513937f |
|
BLAKE2b-256 | f51181752e8658bf623b6c56da2b5face542914ba696192306178e4ef253d690 |