Commit graph

1840 commits

Author SHA1 Message Date
Paul Lietar
9c3541c41b Change the stdout backend to work with arbitrary files. 2016-12-31 13:17:06 +01:00
Paul Lietar
512304c6c3 Merge remote-tracking branch 'badaix/master' 2016-12-31 13:04:14 +01:00
Jörg Krause
64b8b5f91a Don't panic on error InitialFileHeadersCorrupt 2016-12-31 12:56:09 +01:00
Paul Lietar
ac63e4dbb2 travis: Don’t build on an old nightly, it’s broken 2016-12-31 12:54:27 +01:00
Paul Lietar
8544faf75d Only use syntex on modules that need it.
Also updated dependencies.

Fixes #133 and #138
2016-12-31 12:51:44 +01:00
herrernst
b9eb4de090 add basic systemd service unit example
put to /etc/systemd/system/librespot.service and then do `systemctl daemon-reload`
2016-12-30 16:59:18 +01:00
Paul Lietar
7fd8503f45 Use the fallback AP when apresolve fails.
This matches the desktop client’s behaviour.

Fixes #136
2016-12-30 12:02:00 +01:00
Paul Lietar
c6327af2f3 Include pre-generated protocol files.
A build script is used to ensure the source files haven’t been modified.
2016-12-30 12:02:00 +01:00
Johannes Pohl
5ae1397aa6 Merge branch 'master' of https://github.com/badaix/librespot 2016-11-22 15:33:06 +01:00
badaix
383e0e9ae8 added stdout-backend 2016-11-22 15:31:59 +01:00
Paul Lietar
880a266625 Merge pull request #117 from joerg-krause/feature/onstart
Add --on{start,stop} command line option
2016-11-19 22:14:05 +00:00
Paul Lietar
a90d20c11e Merge pull request #126 from juliancheal/typo
Fixed typo in documentation
2016-11-04 02:09:25 +00:00
Julian Cheal
9f42117eb2 Fixed typo 2016-11-03 22:44:36 +00:00
badaix
af05333006 Merge branch 'master' of https://github.com/badaix/librespot 2016-11-01 23:35:55 +01:00
badaix
6b82a765b1 added stdout-backend 2016-11-01 23:35:35 +01:00
Paul Lietar
708d0a82a7 Merge pull request #124 from s1lvester/use_tls
use tls
2016-10-27 14:20:11 +02:00
badaix
60ad12033a added stdout-backend 2016-10-27 09:56:56 +02:00
silvester
e3aa14c839 use ssl 2016-10-26 13:22:22 +02:00
Paul Lietar
6fa4e4d458 Merge pull request #119 from joerg-krause/say-goodbye
Say goodbye when terminating
2016-09-21 22:06:34 -07:00
Jörg Krause
c1e570f48d Say goodbye when terminating
When librespot is terminated while a session is active it will now send
a goodbye message, so that the Spotify client unregisters the device
from its list.

Closes: #114
2016-09-20 21:00:01 +02:00
Jörg Krause
b153de93d1 Update dependencies 2016-09-16 14:03:54 +02:00
Jörg Krause
1d3c387fed Add --on{start,stop} command line option
The --onstart and --onstop command line options can be used to run a
program when the audio playback is about to begin or has ended.

Note, that librespot needs executions rights to run the program.
Furthermore, the full path needs to be specified, e.g.
`/usr/bin/logger`. Executable scripts must begin with a shebang, e.g.
`#!/bin/sh`.
2016-09-08 20:52:21 +02:00
Paul Lietar
f79df63734 Merge pull request #115 from herrernst/also-test-alsa-backend
travis: also test alsa backend
2016-08-28 04:14:06 -07:00
herrernst
202397eb25 travis: also test alsa backend 2016-08-27 23:16:04 +02:00
Paul Lietar
5a4297551d Merge pull request #113 from joerg-krause/alsa-backend
Add ALSA backend
2016-08-27 13:22:34 -07:00
Paul Lietar
445171a46a Add ALSA backend
Closes: #63
2016-08-27 20:14:11 +02:00
Paul Lietar
253dfb7c88 Merge pull request #107 from joerg-krause/fix/close-stream-on-stop
close stream on stop
2016-08-27 01:25:48 -07:00
Paul Lietar
95f42d19c9 Merge pull request #112 from joerg-krause/fix-out-of-bounds-panic
Fix out of bounds panic
2016-08-23 16:53:23 -07:00
Jörg Krause
0716643ae3 Fix out of bounds panic
Selecting a librespot device with the Spotify desktop client causes a
crash if the playlist is empty.

Take into account the case where an empty list of tracks is received. In
this case notify the desktop client, so it will accept the device and
turn the status bar green.

Closes: #71
2016-08-23 23:49:19 +02:00
Paul Lietar
cf7378fda4 Merge pull request #110 from herrernst/travis-cross-arm
travis: also test cross-compilation for arm
2016-08-09 14:44:14 -07:00
herrernst
65c0e2b58d travis: also test cross-compilation for arm 2016-08-09 23:04:17 +02:00
Paul Lietar
1308f095b1 Merge pull request #109 from herrernst/update-lmdb-dep
update lmdb-rs dependency
2016-08-08 15:01:46 -07:00
herrernst
704c89a8a7 update lmdb-rs dependency 2016-08-08 21:50:05 +02:00
Paul Lietar
85002e1e2a Merge pull request #108 from herrernst/cargo-deb
add some fields to Cargo manifest so debian package can be build easily with `cargo-deb`
2016-08-08 12:04:10 -07:00
herrernst
58d24e2744 add some fields to Cargo manifest so debian package can be build easily with cargo-deb 2016-08-08 20:25:18 +02:00
herrernst
ceb375f37e close stream on stop 2016-08-03 21:48:25 +02:00
Paul Lietar
7632fa4712 Merge pull request #93 from serprex/master
Replace time with std::time
2016-07-31 17:40:37 -07:00
Paul Lietar
5388565652 Merge pull request #104 from alboyer/fix-latency
Fix latency
2016-07-22 16:14:58 -07:00
Alain Boyer
82af7a3d71 Specify suggested_latency from device info.
- Update portaudio dependency.
- Pass default_high_output_latency to ensure robust playback.
- This is the same behavior as when previously using Stream::open_default().
2016-07-23 01:39:41 +03:00
Paul Lietar
682658903d Merge pull request #98 from joerg-krause/update/tremor
Update dependency tremor
2016-07-20 14:08:48 -07:00
Jörg Krause
1c973adaae Update dependency tremor 2016-07-20 21:24:37 +02:00
Demur Rumed
674146f52a Replace time with std::time 2016-07-17 03:25:29 +00:00
Paul Lietar
a9ae5b5086 travis: Update nightly version 2016-07-06 11:01:08 +01:00
Paul Lietar
1396f9729a Allow specifying an output device. 2016-07-06 10:54:46 +01:00
Paul Lietar
4cca541339 Remove the need for a application key. 2016-07-06 08:37:41 +01:00
Paul Lietar
e9aad29ae4 Merge pull request #85 from egnwd/egnwd-typo-readme
Update README.md
2016-07-06 02:44:31 +01:00
Paul Lietar
b25585a41b Use a pure rust mDNS responder instead of relying on Avahi / dns-sd.
Fixes #33, #70
2016-07-06 02:36:01 +01:00
Paul Lietar
decce02373 Be a bit less verbose 2016-07-06 02:29:50 +01:00
Paul Lietar
24471eef9b Use serde for json serialization. 2016-07-06 02:29:38 +01:00
Paul Lietar
e688914082 Fix some unused import warnings. 2016-07-06 01:36:46 +01:00