Roderick van Domburg
5451d14972
Rate limit audio file streaming too
2022-09-01 22:35:03 +02:00
Roderick van Domburg
2a79af1f0a
Migrate to Rust 2021
2022-08-02 21:42:38 +02:00
Roderick van Domburg
62461be1fc
Change panics into Result<_, librespot_core::Error>
2021-12-26 21:18:42 +01:00
Roderick van Domburg
2f7b9863d9
Implement CDN for audio files
2021-12-16 22:42:37 +01:00
Roderick van Domburg
9b2ca1442e
Move FileId out of SpotifyId
2021-12-08 19:53:45 +01:00
Roderick van Domburg
d19fd24074
Add spclient and HTTPS support
...
* Change metadata to use spclient
* Add support for HTTPS proxies
* Start purging unwraps and using Result instead
2021-11-26 23:28:37 +01:00
Roderick van Domburg
e58934849f
Fix clippy warnings
2021-06-23 21:43:23 +02:00
Roderick van Domburg
0703630041
Use PacketType
instead of hex identifiers
2021-06-22 23:57:38 +02:00
Roderick van Domburg
d3074f597a
Remove keymaster
and update example
2021-06-22 21:49:36 +02:00
Roderick van Domburg
15628842af
Introduce HTTP client
2021-06-20 23:09:27 +02:00
Roderick van Domburg
850db43254
Add token provider
2021-06-19 23:46:48 +02:00
Roderick van Domburg
6244515879
Resolve dealer
and spclient
access points ( #795 )
2021-06-10 22:24:40 +02:00
johannesd3
1ade02b7ad
Add basic websocket support
2021-05-26 16:51:13 +02:00
johannesd3
e688e7e886
Almost eliminate util module
2021-04-10 12:50:30 +02:00
johannesd3
95fedf5357
Add back hyper-proxy
2021-03-27 15:36:33 +01:00
johannesd3
27f308b82f
Replace error_chain by thiserror
2021-02-23 22:22:52 +01:00
johannesd3
10827bd6a8
Clean up dependencies of librespot-core
...
* Use sub-crates of future
* Remove unnecessary pin-project
* Removed unused crates and features
* Replace futures channels by tokio channels
* Use serde's "derive" feature flag instead of serde_derive
2021-02-23 22:22:51 +01:00
johannesd3
8cff10e983
Put apresolve behind feature flag
2021-02-23 22:22:51 +01:00
johannesd3
9253be7bc9
Small refactor of librespot-core
...
* Remove default impl for `SessionConfig`
* Move util mod to single file
* Restore privacy of mods
* Move `fn get_credentials` to application
* Remove `extern crate` statements
2021-02-23 22:22:51 +01:00
johannesd3
872fab62d8
Merge branch 'dev' into tokio_migration
2021-02-10 21:51:33 +01:00
johannesd3
bb44b99c92
Use proxytunnel in apresolve
...
Implementing the tower_service::Service trait for a newly created
ProxyTunnel struct, so it can be used as connector in hyper.
2021-01-30 14:45:31 +01:00
johannesd3
07514c9dcc
Add proxy support to apresolve
2021-01-25 20:55:49 +01:00
johannesd3
fd1f049572
Removed volume struct
2021-01-25 10:52:06 +01:00
johannesd3
6c9d8c8d83
Replace pin_project and updated dependencies
2021-01-25 09:04:33 +01:00
johannesd3
40e6355c34
Migrate core to tokio 1.0
2021-01-25 09:04:33 +01:00
ashthespy
d26590afc5
Update to Rust 2018
...
- Fix deprecated Error::cause warnings and missing dyn
- Reset max_width
- Add rustfmt to Travis
- Run rustfmt on full codebase
with `cargo fmt --all`
- Add rustfmt to Travis
- Complete migration to edition 2018
- Replace try! shorthand
- Use explicit `dyn Trait`
2020-01-17 18:11:52 +01:00
Will Stott
ac1c31b786
Use Rust's built-in unsigned 128 bit integer instead of the extprim crate
2019-10-22 18:28:21 +01:00
Sasha Hilton
bf7f54a218
Merge pull request #299 from librespot-org/error-source-fix
...
Fix depreciation warnings, bump Travis version to 1.30.0
2019-04-12 05:40:20 +02:00
ashthespy
9f9218f3cc
Remove redundant rpassword
crate from librespot-core
2019-03-26 18:07:05 +01:00
Sasha Hilton
1ccf00cfbb
Merge branch 'master' into error-source-fix
2019-03-20 16:48:41 +01:00
Sasha Hilton
fe4b71d76c
Fix tokio depreciation warnings
2019-03-20 16:46:44 +01:00
Артём Павлов [Artyom Pavlov]
72589443c7
update Cargo.lock, use constant time equality check, remove block-modes
2019-03-16 18:30:10 +03:00
newpavlov
e4677027d2
replace rust-crypto's hashes, HMAC and PBKDF2
2018-07-23 16:41:39 +03:00
Brice
d40c0f50db
Cache volume across restarts ( #220 )
...
* create Volume struct for use with Cache
* add "volume" file to Cache
* load cached volume on start, intial overrides cached overrides default
* amend volume_to_mixer function to cache the volume on every change
* pass cache to Spirc and SpircTask so volume_to_mixer has access
* rustfmt changes
* revert volume_to_mixer function and Spirc/SpircTask cache variable
* Volume implements Copy, pass by value instead of reference
* clamp volume to 100 if cached value exceeds limit
* convert Volume to u16 internally, use float and round to convert hex->dec
* convert initial_volume and ConnectConfig.volume to u16 as well
* add cache_volume function to SpircTask
* remove conversion to/from percentage on cached volume
* consolidate device.set_volume, mixer.set_volume, and caching
* streamline intial volume logic
2018-05-17 03:15:17 +02:00
Johan Anderholm
3a14e9a6be
Validate proxy urls better.
...
Use the url crate to handle proxies to make sure they conform to a
proper format.
2018-03-24 08:45:43 +00:00
Johan Anderholm
1a04e3b899
Resolve AP through proxy as well
2018-03-24 08:45:43 +00:00
Johan Anderholm
3bdc5e0073
Add support for http proxy
...
Currently only http proxy (no https) is supported.
2018-03-24 08:45:43 +00:00
Sasha Hilton
a7334b6c23
Add to_base62 method
2018-02-28 13:28:57 +01:00
awiouy
4c2b641cad
core API: move spotify_id to lib.rs
2018-02-13 07:57:28 +01:00
Anton Voyl
e276d39704
core: remove protobuf_macros ( #146 )
...
Fixes #129
2018-02-12 15:58:09 +01:00
awiouy
c9ba73c9ef
rustfmt: core
2018-02-11 12:37:08 +01:00
awiouy
d34068c5a7
core API: apresolve
2018-02-09 20:57:49 +01:00
Sasha Hilton
6a442a4570
Move keymaster to core
2018-02-06 19:54:28 +01:00
Thomas Bächler
d36017d6f0
Remove usage of deprecated tokio_core::io
2018-01-25 23:23:45 +01:00
Paul Lietar
d1447d2bfb
Add support for lewton as an Vorbis decoder.
2017-08-04 05:28:25 +01:00
Paul Lietar
bf60f6e7ab
Create new librespot-core crate
2017-08-03 19:58:44 +01:00