fix: Get the track of available alternative tracks

This commit is contained in:
oSumAtrIX 2024-02-23 01:25:12 +01:00 committed by GitHub
parent 92cf74bded
commit 986157c21d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -474,7 +474,7 @@ impl DownloaderInternal {
async fn find_alternative(session: &Session, track: Track) -> Result<Track, SpotifyError> {
for alt in track.alternatives {
let t = Track::get(session, alt).await?;
if !t.available {
if t.available {
return Ok(t);
}
}