From c0fc35fd1845df10608975319e4d476b4be730c3 Mon Sep 17 00:00:00 2001 From: eladyn Date: Thu, 30 Jun 2022 00:22:27 +0200 Subject: [PATCH] Include more metadata in track struct Based on changes from @capnfabs. --- metadata/src/artist.rs | 4 ++-- metadata/src/track.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/metadata/src/artist.rs b/metadata/src/artist.rs index ac07d90e..1543d24d 100644 --- a/metadata/src/artist.rs +++ b/metadata/src/artist.rs @@ -21,10 +21,10 @@ pub struct Artist { } #[derive(Debug, Clone)] -pub struct Artists(pub Vec); +pub struct Artists(pub Vec); impl Deref for Artists { - type Target = Vec; + type Target = Vec; fn deref(&self) -> &Self::Target { &self.0 } diff --git a/metadata/src/track.rs b/metadata/src/track.rs index 4ab9b2b4..c4ba7e85 100644 --- a/metadata/src/track.rs +++ b/metadata/src/track.rs @@ -18,7 +18,7 @@ use crate::{ restriction::Restrictions, sale_period::SalePeriods, util::try_from_repeated_message, - Metadata, RequestResult, + Album, Metadata, RequestResult, }; use librespot_core::{date::Date, Error, Session, SpotifyId}; @@ -28,7 +28,7 @@ use librespot_protocol as protocol; pub struct Track { pub id: SpotifyId, pub name: String, - pub album: SpotifyId, + pub album: Album, pub artists: Artists, pub number: i32, pub disc_number: i32,