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:
DaXcess
2024-09-27 14:53:58 +02:00
parent c05624fc76
commit 41d75a956c
13 changed files with 456 additions and 156 deletions
+1 -1
View File
@@ -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
+3 -3
View File
@@ -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)?,
})