1
0
Fork 0
mirror of https://github.com/librespot-org/librespot.git synced 2025-10-03 01:39:28 +02:00

adding callback for reusable credentials (#983)

This allows more control over how the credentials are saved to the cache
This commit is contained in:
Louis Seubert 2022-05-20 12:53:44 +02:00 committed by GitHub
parent 1efda79787
commit 6c2491b9a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 17 additions and 8 deletions

View file

@ -20,7 +20,7 @@ async fn main() {
println!("Connecting..");
let credentials = Credentials::with_password(&args[1], &args[2]);
let session = Session::connect(session_config, credentials, None)
let (session, _) = Session::connect(session_config, credentials, None, false)
.await
.unwrap();

View file

@ -27,7 +27,7 @@ async fn main() {
let backend = audio_backend::find(None).unwrap();
println!("Connecting ..");
let session = Session::connect(session_config, credentials, None)
let (session, _) = Session::connect(session_config, credentials, None, false)
.await
.unwrap();

View file

@ -27,7 +27,7 @@ async fn main() {
process::exit(1);
});
let session = Session::connect(session_config, credentials, None)
let (session, _) = Session::connect(session_config, credentials, None, false)
.await
.unwrap();