1
0
Fork 0
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:
Felix Prillwitz 2024-10-19 20:27:26 +02:00 committed by GitHub
parent d8e84238ab
commit 4580dab73f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 362 additions and 55 deletions

View file

@ -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),