mirror of
https://github.com/librespot-org/librespot.git
synced 2025-10-03 09:49:31 +02:00
Get access token via login5 (#1344)
* core: Obtain spclient access token using login5 instead of keymaster (Fixes #1179) * core: move solving hashcash into util * login5: add login for mobile --------- Co-authored-by: Nick Steel <nick@nsteel.co.uk>
This commit is contained in:
parent
d8e84238ab
commit
4580dab73f
9 changed files with 362 additions and 55 deletions
|
@ -109,7 +109,9 @@ impl HttpClient {
|
|||
let os_version = System::os_version().unwrap_or_else(|| zero_str.clone());
|
||||
|
||||
let (spotify_platform, os_version) = match OS {
|
||||
// example os_version: 30
|
||||
"android" => ("Android", os_version),
|
||||
// example os_version: 17
|
||||
"ios" => ("iOS", os_version),
|
||||
"macos" => ("OSX", zero_str),
|
||||
"windows" => ("Win32", zero_str),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue