Update rspotify to 0.11.3 (et al)
Also allows us to revert the previously applied fix where the market parameter had to be removed.
This commit is contained in:
@@ -130,8 +130,8 @@ impl From<&FullTrack> for Track {
|
||||
.collect::<Vec<String>>();
|
||||
|
||||
Self {
|
||||
id: Some(track.id.id().to_string()),
|
||||
uri: track.id.uri(),
|
||||
id: track.id.as_ref().map(|id| id.to_string()),
|
||||
uri: track.id.as_ref().map(|id| id.uri()).unwrap_or_default(),
|
||||
title: track.name.clone(),
|
||||
track_number: track.track_number,
|
||||
disc_number: track.disc_number,
|
||||
@@ -142,7 +142,7 @@ impl From<&FullTrack> for Track {
|
||||
album_id: track.album.id.as_ref().map(|a| a.id().to_string()),
|
||||
album_artists,
|
||||
cover_url: track.album.images.get(0).map(|img| img.url.clone()),
|
||||
url: track.id.url(),
|
||||
url: track.id.as_ref().map(|id| id.url()).unwrap_or_default(),
|
||||
added_at: None,
|
||||
list_index: 0,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user