Nick Steel
4f9151c642
Credentials with access token (oauth) ( #1309 )
...
* core: Create credentials from access token via OAuth2
* core: Credentials.username is optional: not required for token auth.
* core: store auth data within session. We might need this later if need to re-auth and original creds are no longer valid/available.
* bin: New --token arg for using Spotify access token. Specify 0 to manually enter the auth code (headless).
* bin: Added --enable-oauth / -j option. Using --password / -p option will error and exit.
* core: reconnect session if using token authentication
Token authenticated sessions cannot use keymaster. So reconnect using the reusable credentials we just obtained. Can perhaps remove this
workaround once keymaster is replaced with login5.
* examples: replace password login with token login
2024-09-13 07:35:55 +02:00
Johannesd3
ebea5397b9
Add librespot-discovery crate
2021-05-19 21:05:19 +02:00
johannesd3
b606d8c661
Replace "extern crate"s
2021-02-23 22:22:53 +01:00
johannesd3
daf7ecd23a
Migrate librespot-connect to tokio 1.0
2021-02-21 14:09:31 +01:00
johannesd3
91d7d0422b
Preparing main crate for testing
2021-01-25 09:04:47 +01:00
johannesd3
fe37186804
Make librespot_playback work
2021-01-25 09:04:33 +01:00
marcelbuesing
be2ad9059a
Migrate to rust 2018 edition
2020-01-17 15:54:42 +01:00
Ash
25107ee796
Revert "Fix play.rs example ( #379 )"
...
This reverts commit 2ff71abb8e
.
2019-10-09 18:05:08 +02:00
Gilles Castel
2ff71abb8e
Fix play.rs example ( #379 )
...
Fix `play.rs` example by renaming `core` to `librespot_core`
2019-10-09 10:44:20 +02:00
newpavlov
e4677027d2
replace rust-crypto's hashes, HMAC and PBKDF2
2018-07-23 16:41:39 +03:00
Sasha Hilton
237ef1e4f9
Format according to rustfmt
2018-02-26 02:50:41 +01:00
awiouy
d900134114
connect: discovery and spirc
2018-02-11 23:55:41 +01:00
Sasha Hilton
1fb65354b0
Move audio backends into seperate crate
2018-02-09 02:05:50 +01:00
awiouy
e3516ebd9b
Move discovery to its own module.
2018-02-08 04:03:53 +01:00
Sasha Hilton
cfa7a62dfc
Re-add serde_derive to lib.rs
2018-02-07 15:07:01 +01:00
Sasha Hilton
6a442a4570
Move keymaster to core
2018-02-06 19:54:28 +01:00
Sasha Hilton
407e23b311
Merge branch 'master' into jackaudio
2018-02-02 05:12:36 +01:00
Sasha Hilton
d923f3bad3
Add with-dns-sd feature flag
2018-01-31 12:00:53 +01:00
Thomas Bächler
2465b0f57f
Refactor the discovery module to remove usage of deprecated functions
2018-01-25 23:23:45 +01:00
Thomas Bächler
f5d8019c18
Add proper error handling to the pulseaudio backend and ensure that no invalid pointers are passed to pulseaudio
2017-12-17 23:28:42 +01:00
loblik
adeb22b2f3
add support for jack audio connection kit
...
This is initial support for JACK. It creates ports at startup and
keeps it connected while librespot is running. So when librespot
playback is stoped it writes silence (zeroes).
It uses jack crate (rust-jack) which needs libjack. To compile in
jack support use --features jackaudio-backend. And run librespot
with --backend jackaudio.
2017-10-05 21:06:51 +02:00
Paul Lietar
d1447d2bfb
Add support for lewton as an Vorbis decoder.
2017-08-04 05:28:25 +01:00
Paul Lietar
ec8f80df75
Create new librespot-audio crate
2017-08-03 20:37:04 +01:00
Paul Lietar
a51b562487
Create new librespot-metadata crate
2017-08-03 20:11:17 +01:00
Paul Lietar
bf60f6e7ab
Create new librespot-core crate
2017-08-03 19:58:44 +01:00
Paul Lietar
72070b6ce0
Allow device type to be chosen.
...
Fix #187
2017-08-03 19:31:15 +01:00
Paul Lietar
28232b5a52
Add keymaster API
2017-05-10 16:26:48 +01:00
Paul Lietar
ded43122a2
Allow deprecated items.
...
Tokio has moved lots of stuff from tokio-core::io to tokio-io.
2017-04-29 12:56:15 +01:00
Johan Anderholm
e60cdeafca
hyper::Url -> hyper::Uri, portaudio -> portaudio-rs
...
hyper::Url is replaced by hyper::Uri in recent hyper versions.
portaudio was renamed to portaudio-rs and added to cargo.io
2017-04-29 13:06:29 +02:00
Paul Lietar
294a7821d6
Add simple playback example.
2017-04-28 23:24:55 +01:00
Paul Lietar
2708aa4fef
Merge remote-tracking branch 'origin/master'
2017-02-21 22:46:19 +00:00
Paul Lietar
19b06ae5fb
Update dependencies.
...
Rust 1.15 is now required.
2017-02-09 01:27:52 +00:00
Daniel Romero
10f9da410e
Remove code to notify spirc manager from the mixer
2017-02-03 17:11:36 +01:00
Daniel Romero
48a43f4948
Move structs which are send across threads to own module
2017-02-03 13:22:49 +01:00
Daniel Romero
37916330b4
Add macro to be able to create wrapped senders to send multiple message types to one channel
2017-02-03 13:22:49 +01:00
Daniel Romero
347bf05dbe
Refactored to have apply_volume in a specifix mixer
2017-02-03 13:22:49 +01:00
Paul Lietar
bbc438d9b2
Clippy run
2017-01-29 17:20:12 +00:00
Paul Lietar
17482c236a
Stop caching audio keys, reenable audio file cache
2017-01-29 15:36:39 +00:00
Paul Lietar
f3ba3f4bd4
Update dependencies
2017-01-29 12:50:18 +00:00
Paul Lietar
bf6be73caa
Move album cover to tokio
2017-01-20 01:59:47 +00:00
Paul Lietar
379c90c0b2
Move audio_file and channels to tokio
2017-01-20 01:59:47 +00:00
Paul Lietar
05118b40f8
Move MetadataManager to use tokio
2017-01-20 01:59:47 +00:00
Paul Lietar
bcbd7afb1a
Change mercury to use tokio
2017-01-20 01:59:47 +00:00
Paul Lietar
855a7e87a7
Move AudioKeyManager to tokio
2017-01-20 01:59:47 +00:00
Paul Lietar
9de55bb8cd
Move ap resolve and discovery to tokio.
2017-01-20 01:59:46 +00:00
Paul Lietar
9d5e2e9fed
Rewrite connection layer to use tokio
2017-01-20 01:59:46 +00:00
Paul Lietar
aa499e0189
Get rid of main_helper
2017-01-10 16:31:12 +00:00
Paul Lietar
e254bb7291
Remove support for Facebook authentication.
2017-01-05 14:40:33 +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