Document onstart/onstop params for spotify

This commit is contained in:
Jörg Krause 2017-03-30 13:23:14 +02:00
parent 1353d01a5a
commit c5bbef1053

View file

@ -133,7 +133,7 @@ Snapserver supports [shairport-sync](https://github.com/mikebrady/shairport-sync
### Spotify
Snapserver supports [librespot](https://github.com/plietar/librespot) with `pipe` backend.
1. Build and copy the `librespot` binary somewhere to your `PATH`, e.g. `/usr/local/bin/`
2. Configure snapserver with `-s "spotify:///librespot?name=Spotify[&username=<my username>&password=<my password>][&devicename=Snapcast][&bitrate=320]"`
2. Configure snapserver with `-s "spotify:///librespot?name=Spotify[&username=<my username>&password=<my password>][&devicename=Snapcast][&bitrate=320][&onstart=/usr/bin/logger -t Snapcast Starting spotify...][&onstop=/usr/bin/logger -t Snapcast Stopping spotify...]"`
* Valid bitrates are 96, 160, 320