fix: Get the track of available alternative tracks
This commit is contained in:
parent
92cf74bded
commit
986157c21d
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue