Remove duplicate album query

This commit is contained in:
Henrik Friedrichsen
2023-07-23 14:41:46 +02:00
parent 924296ac52
commit bef4742cec
2 changed files with 3 additions and 5 deletions

View File

@@ -38,7 +38,7 @@ impl Album {
if let Some(ref album_id) = self.id {
let mut collected_tracks = Vec::new();
if let Some(full_album) = spotify.api.full_album(album_id) {
if let Some(full_album) = spotify.api.album(album_id) {
let mut tracks_result = Some(full_album.tracks.clone());
while let Some(ref tracks) = tracks_result {
for t in &tracks.items {