Simon Persson
b4c7e8e057
Make main_helper useful with values not from getopts.
...
Applications that gets these values from config file
shouldn't have to reinvent the wheel.
2017-01-06 12:50:44 +01:00
Paul Lietar
7ba3d766c0
Reduce log verbosity by default.
...
Fixes #141
2017-01-05 14:25:14 +01:00
Paul Lietar
baf2b65d7b
Use rustls rather than openssl
2016-12-31 14:49:04 +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
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
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
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
a36325a46a
Add a main helper to make it easier to use librespot.
2016-04-24 13:29:26 +01:00
Paul Lietar
edb8a6a766
Cleanup authentication logic
2016-04-24 12:15:53 +01:00
Paul Lietar
c47a1b7ec9
Remove support for password in environment variable.
...
This is less useful now that saved credentials work.
2016-04-24 09:56:05 +01:00
Paul Lietar
f8cd09e5be
Use is_err rather than pattern matching.
2016-04-24 09:54:56 +01:00
Marcus Thiesen
b0ea636179
Replace some more println with log
2016-04-23 13:35:00 +02:00
Tor Arne Vestbø
e08ed545ee
Use log crate instead of println
...
Allows more granular control over what gets logged to the console.
2016-04-23 13:35:00 +02:00
Paul Lietar
968a39a131
Make audio backend configurable at run time.
2016-03-20 16:16:20 +00:00
Paul Lietar
230c891df0
Print librespot version on startup.
2016-03-17 03:31:57 +00:00
Paul Lietar
0770f6ce61
Move authentication to a different directory, and make discover use hyper.
2016-03-17 03:28:28 +00:00
Paul Lietar
85903a0da5
Split cache handling to separate module.
...
Use it for audio keys and album covers as well.
2016-03-16 04:20:42 +00:00
Paul Lietar
4b4bc2f4e1
Add Facebook based login.
2016-03-16 00:05:05 +00:00
Paul Lietar
aa1d466e92
Support building with the application key statically included in the binary.
2016-03-14 23:41:51 +00:00
Paul Lietar
a5453de572
Make cache directory optional.
...
If the -c argument is omitted, librespot will run without a cache, and
download tracks overtime they are played.
2016-03-14 22:57:00 +00:00
Paul Lietar
0973469120
Forgot to add some files in previous commit.
2016-03-14 00:50:42 +00:00
Paul Lietar
9274a6bfb3
Refactor audio output to make it more modular.
...
This makes the player less hard coded to portaudio, and easier to
experiment with different backends.
2016-03-14 00:49:21 +00:00
Paul Lietar
4b73f83c5e
Save reusable credentials to disk.
...
After the first login, credentials may be omitted from the command line
and the stored ones will be used instead.
2016-03-13 22:35:09 +00:00
Paul Lietar
39af43728a
Refactor authentication to separate protocol and token generation.
2016-03-13 20:45:31 +00:00
Paul Lietar
90eeed3f80
rustfmt
2016-01-02 16:20:35 +01:00
Paul Lietar
f8956166ea
Add option to specify bitrate.
2016-01-02 03:30:24 +01:00
Paul Lietar
47c6d60b12
Merge branch 'env-password' of https://github.com/herrernst/librespot into master
2016-01-02 02:53:20 +01:00
Paul Lietar
e35da9c90a
Use discovery if username and password are not provided.
2016-01-02 02:30:03 +01:00
Paul Lietar
bead9daf78
Add zeroconf based authentication.
2016-01-02 00:27:08 +01:00
herrernst
7f8e85f90b
try reading password from env variable first, so it doesn't appear in process listing
2015-12-31 11:55:56 +01:00
Jaime Rodriguez
e321379501
Use canonical username when subscribing to spirc.
...
Uses canonical username that APWelcome message
contains once authenticated instead of username
provided by user. SpircManager now accesses it via
its Session field.
Fixes #15
2015-12-30 20:11:46 +01:00
Paul Lietar
10cc523cfd
Update to rust nightly
2015-10-20 11:22:08 +01:00
Paul Lietar
267ccbe65e
Fix build on latest rust.
2015-09-01 13:20:37 +02:00
Simon Persson
ef1c86df18
Make command line argument parsing more robust.
2015-07-20 16:31:59 +00:00
Paul Lietar
1264394838
Add a SpircDelegate abstraction.
2015-07-09 21:08:14 +01:00
Paul Lietar
cdd939e88e
Clean up main.rs
2015-07-09 20:08:56 +01:00
Tor Arne Vestbø
22e367214e
Move SPIRC into librespot so it can be re-used by other applications
2015-07-08 23:01:15 +02:00
Tor Arne Vestbø
cbd414853f
Move librespot into lib.rs and let main.rs be the test binary
2015-07-08 23:01:14 +02:00
Paul Lietar
e452abce43
Cache audio files to disk.
2015-07-07 22:40:31 +01:00
Paul Lietar
4fd0b37e2b
Initial Spotify Connect receiver.
...
Supports basic play/pause. Only a single track for now.
2015-07-02 21:42:49 +02:00
Paul Lietar
2a2f227bef
Refactor the whole architecture.
...
Use less threads, makes it much simpler to reason about.
2015-07-02 19:24:25 +02:00
Paul Lietar
c1ce87dbbd
spirc: Keep track of player status
2015-07-02 13:54:34 +02:00
Paul Lietar
df11960946
spirc: Don’t hardcode stuff
2015-07-02 01:27:19 +02:00
Paul Lietar
45491925de
Answer to basic Spirc requests.
2015-07-02 00:40:38 +02:00
Paul Lietar
7897070bb7
Add initial Spirc support.
2015-07-01 22:21:22 +02:00
Paul Lietar
addc1fce22
Update protocol files.
2015-07-01 20:18:00 +02:00
Paul Lietar
7ffe996652
Lots of stuff
2015-06-23 15:38:29 +01:00
Paul Liétar
1ad62e6f18
First working version of protocol handshake.
...
Key exchange and authentication is functional.
Protocol definition has been moved to separate crate to speed up build time.
Various cleanups. Take login info from command line, rather than hardcoded.
2015-05-09 11:16:43 +01:00
Paul Liétar
a993b60ffa
Initial commit.
2015-04-25 21:32:07 +01:00