Daniel M
f55bdbb962
Fix SpClient::get_playlist
endpoint generation
2022-08-04 00:09:30 +02:00
Roderick van Domburg
d88a20929f
Playlist ID should be Base62 encoded
2022-08-03 23:21:38 +02:00
Roderick van Domburg
80f0d3c59b
Pass by reference
2022-08-03 22:26:52 +02:00
Roderick van Domburg
70eb3f9d72
Add more HTTP endpoints and migrate playlist
2022-08-03 21:27:07 +02:00
Roderick van Domburg
922e927231
Merge pull request #1039 from roderickvd/rust-2021-edition
...
Migrate to Rust 2021
2022-08-03 20:04:31 +02:00
dnlmlr
131310b920
Fix panic in ApResolver::resolve
( #1038 )
...
- Fixed resolve function panicking when resolving endpoint type with no
AP in the list
- Fixed fallback APs not being applied when only some of the AP types
were missing
- Switch container type from `Vec` to `VecDeque` for the `AccessPoints`
- Remove the note about fallback AP being used even if the port is not
matching the configured `ap_port`
2022-08-03 20:01:03 +02:00
Roderick van Domburg
cdf84925ad
Add client-token
header to spclient
requests
...
- Also fix an overflow panic when a token cannot be parsed.
- Getting tokens always requires the keymaster client ID;
passing the actual client ID yields a HashCash challenge.
2022-08-02 23:06:02 +02:00
Roderick van Domburg
2a79af1f0a
Migrate to Rust 2021
2022-08-02 21:42:38 +02:00
sqozz
d09ee4206c
Add minimum rust version
2022-08-01 15:14:17 +02:00
Roderick van Domburg
5344258ba9
Relax some non-fatal events to WARN level
...
Fixes #1029
2022-07-30 22:39:05 +02:00
Roderick van Domburg
786f8832d1
Update version numbers to 0.5.0-dev
2022-07-30 22:28:12 +02:00
Roderick van Domburg
37794c5b78
Merge branch 'new-api' into dev
2022-07-29 23:39:06 +02:00
Roderick van Domburg
6537c441c3
Update Cargo.lock
2022-07-29 22:05:10 +02:00
Roderick van Domburg
87ea69b457
Blacklist ap-gue1.spotify.com access point
2022-07-29 21:30:27 +02:00
Roderick van Domburg
9e06b11609
Update MSRV to 1.61 and fix test
2022-07-28 19:32:11 +02:00
Roderick van Domburg
7bd9186e94
Blacklist ap-gew4 access point ( #1026 )
2022-07-28 18:51:49 +02:00
eladyn
88f7cdbb44
Fix playlist metadata fields parsing ( #1019 )
...
Some fields were wrongly parsed as `SpotifyId`s, although they do not
always encode exactly 16 bytes in practice. Also, some optional fields
caused `[]` to be parsed as `SpotifyId`, which obviously failed as well.
2022-07-28 18:46:16 +02:00
Roderick van Domburg
05b9b13cf8
Merge branch 'dev' into new-api and update crates
2022-07-27 23:31:11 +02:00
Roderick van Domburg
88e64bd884
Update Cargo.lock
2022-05-23 21:43:16 +02:00
JasonLG1979
c03d3ad102
Bump deps
...
This bumps deps that don't need major code refactoring or MSRV bumps.
2022-05-23 10:19:54 -05:00
Roderick van Domburg
dff19377fa
Update version numbers to 0.4.0
2022-05-21 22:31:15 +02:00
Roderick van Domburg
2a3e248bba
Fix clippy lints
2022-05-21 21:36:56 +02:00
Louis Seubert
6c2491b9a3
adding callback for reusable credentials ( #983 )
...
This allows more control over how the credentials are saved to the cache
2022-05-20 12:53:44 +02:00
Bernhard M. Wiedemann
9de1f38e92
Allow to override build_id with SOURCE_DATE_EPOCH
...
in order to make builds reproducible.
See https://reproducible-builds.org/ for why this is good
and https://reproducible-builds.org/specs/source-date-epoch/
for the definition of this variable.
This PR was done while working on reproducible builds for openSUSE.
2022-05-20 10:29:42 +02:00
JasonLG1979
d887d58251
Fix clippy warnings
2022-03-20 10:52:08 -05:00
JasonLG1979
30c960a6cd
Silence compiler warning
...
The `split` variable in `split_uri` should not be `mut`.
2022-02-23 17:08:43 -06:00
Jason Gray
47f1362453
Port remove unsafe code and catch up with dev ( #956 )
2022-02-14 12:15:19 +01:00
Roderick van Domburg
cb1cfddb74
Send platform-dependent client token request
2022-01-26 22:53:30 +01:00
Roderick van Domburg
31c682453b
Prevent man-in-the-middle attacks
2022-01-25 22:48:27 +01:00
Roderick van Domburg
44860f4738
Remove assertions for what we know works well
2022-01-25 20:58:39 +01:00
Roderick van Domburg
3f95a45b27
Parse dates without month or day ( fixes #943 )
2022-01-25 20:03:35 +01:00
SuisChan
8498ad8078
Update connectivity.proto
2022-01-24 12:52:15 +01:00
Jason Gray
ceebb374f0
Remove unsafe code ( #940 )
...
Remove unsafe code
2022-01-23 19:02:04 +01:00
Roderick van Domburg
4ea1b77c7b
Fix client-token
and implement expiry logic
2022-01-23 00:26:52 +01:00
Roderick van Domburg
1528292583
Retrieve client token (not working)
2022-01-22 23:17:10 +01:00
Roderick van Domburg
0630586cd6
Ensure a client ID is present
2022-01-22 21:27:56 +01:00
Roderick van Domburg
0822af0328
Use configured client ID on initial connection ( fixes #941 )
2022-01-22 21:17:55 +01:00
Roderick van Domburg
8851951f04
Change counting to spirc
and player
...
They can be reinstantiated, unlike the `session` which is now
intended to be constructed once.
2022-01-16 21:29:59 +01:00
Roderick van Domburg
fcb21df81f
Fix connect test
2022-01-16 01:36:28 +01:00
Roderick van Domburg
abbc3bade8
Register message listeners before connecting
2022-01-16 01:14:00 +01:00
Roderick van Domburg
dbeeb0f991
Switch from chrono
to time
2022-01-14 23:28:09 +01:00
Roderick van Domburg
32df4a401d
Add configurable client ID and listen for updates
2022-01-12 22:09:57 +01:00
Roderick van Domburg
fbff879f3d
Update http
, once_cell
, vergen
2022-01-09 01:03:47 +01:00
Roderick van Domburg
56f3c39fc6
Update hmac
, pbkdf2
, serde
, serde_json
, sha-1
2022-01-09 00:25:47 +01:00
Roderick van Domburg
5a8bd5703c
Update tokio
and hyper-rustls
2022-01-08 23:28:46 +01:00
Roderick van Domburg
5cc3040bd8
Update futures
2022-01-08 21:21:31 +01:00
Roderick van Domburg
89a5133bd7
Upgrade aes-ctr
to latest aes
2022-01-08 20:51:51 +01:00
Roderick van Domburg
c1965198fc
Move DeviceType
to core
2022-01-06 09:48:11 +01:00
Roderick van Domburg
4ca1f661d5
Prevent deadlock
2022-01-06 09:43:50 +01:00
Roderick van Domburg
cc9a574b2e
Move ConnectConfig
to connect
2022-01-05 21:15:19 +01:00