Unofficial YouTube Music / Spotify Premium client for Android, built in Liquid Glass. Audio effects, Spotify Connect, listening history, 8 languages. Rust core on librespot.
Kotlin alternativeandroidandroid-applicationclientglassmorphisminnertubelibrespotliquid-glassspotifyspotify-connectspotifyapiyoutube-musicyoutube-playerytdlnis
Downcast the audio key error through its cause
Lelonioa4a121cadeab
diff --git a/native/vendor/librespot-core/src/audio_key.rs b/native/vendor/librespot-core/src/audio_key.rsindex 3eeba25..457a13a 100644--- a/native/vendor/librespot-core/src/audio_key.rs+++ b/native/vendor/librespot-core/src/audio_key.rs@@ -102,8 +102,11 @@ impl AudioKeyManager {match self.request_once(track, file).await {Ok(key) => return Ok(key),Err(e) => {+ // Through the boxed cause, not the wrapper. This `Error` is+ // librespot's own: a `kind` plus the error it was built+ // from, and only the latter says which failure this was.let transient = matches!(- e.downcast_ref::<AudioKeyError>(),+ e.error.downcast_ref::<AudioKeyError>(),Some(AudioKeyError::AesKey) | Some(AudioKeyError::Timeout));if !transient || attempt + 1 == ATTEMPTS {