2.2.4-dev.1
- Updated librespot to latest commits + login5 PR merged - Fix non premium account shutting down bot - Add additional timeouts to credential retrieval - Add message for if AP connection drops
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "spoticord_session"
|
||||
version = "2.2.3"
|
||||
version = "2.2.4"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
@@ -106,7 +106,7 @@ impl Session {
|
||||
Err(why) => {
|
||||
error!("Failed to retrieve credentials: {why}");
|
||||
|
||||
return Err(why.into());
|
||||
return Err(why);
|
||||
}
|
||||
};
|
||||
let device_name = match session_manager.database().get_user(owner.to_string()).await {
|
||||
@@ -616,7 +616,7 @@ async fn retrieve_credentials(database: &Database, owner: impl AsRef<str>) -> Re
|
||||
None => {
|
||||
let access_token = database.get_access_token(&account.user_id).await?;
|
||||
let credentials = spotify::request_session_token(Credentials {
|
||||
username: account.username.clone(),
|
||||
username: Some(account.username.to_string()),
|
||||
auth_type: AuthenticationType::AUTHENTICATION_SPOTIFY_TOKEN,
|
||||
auth_data: access_token.into_bytes(),
|
||||
})
|
||||
@@ -632,7 +632,7 @@ async fn retrieve_credentials(database: &Database, owner: impl AsRef<str>) -> Re
|
||||
};
|
||||
|
||||
Ok(Credentials {
|
||||
username: account.username,
|
||||
username: Some(account.username),
|
||||
auth_type: AuthenticationType::AUTHENTICATION_STORED_SPOTIFY_CREDENTIALS,
|
||||
auth_data: BASE64.decode(token)?,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user