Open Source Spotify client library
Find a file
2015-07-14 23:52:38 +01:00
protocol Fix build on latest nightly. 2015-07-02 22:00:30 +02:00
src Support playing multiple tracks in a row 2015-07-09 23:09:40 +01:00
.gitignore Add README with build and run instructions. 2015-07-14 23:27:03 +01:00
build.rs First working version of protocol handshake. 2015-05-09 11:16:43 +01:00
Cargo.lock Cache audio files to disk. 2015-07-07 22:40:31 +01:00
Cargo.toml Move librespot into lib.rs and let main.rs be the test binary 2015-07-08 23:01:14 +02:00
LICENSE Initial commit. 2015-04-25 21:32:07 +01:00
README.md Fix path to main binary in README.md 2015-07-14 23:52:38 +01:00

librespot

librespot is an open source client library for Spotify. It enables applications to use Spotify's service, without using the official but closed-source libspotify. Additionally, it provides extra features which are not available in the official library.

Status

librespot is currently under development and is not fully functional yet. You are however welcome to experiment with it.

Building

Building librespot requires rust nightly. It will not work on rust stable or beta.

You will also need the protobuf compiler, and the rust-protobuf plugin. protoc-gen-rust must be in your $PATH.

Once you've cloned this repository you can build librespot using cargo.

cargo build

Usage

A sample program implementing a headless Spotify Connect receiver is provided. Once you've built librespot, run it using :

target/debug/main APPKEY USERNAME PASSWORD CACHEDIR DEVICENAME

where APPKEY is the path to a Spotify application key file, USERNAME and PASSWORD are your Spotify credentials, CACHEDIR is the path to directory where data will be cached, and DEVICENAME is the name that will appear in the Spotify Connect menu.

Disclaimer

Using this code to connect to Spotify's API is probably forbidden by them, and might result in you application key getting banned. Use at you own risk

Contact

Come and hang out on gitter if you need help or want to offer some. https://gitter.im/sashahilton00/spotify-connect-resources

License

Everything in this repository is licensed under the MIT license.