mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
Include more metadata in track struct
Based on changes from @capnfabs.
This commit is contained in:
parent
e9f3b6d290
commit
c0fc35fd18
2 changed files with 4 additions and 4 deletions
|
@ -21,10 +21,10 @@ pub struct Artist {
|
|||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct Artists(pub Vec<SpotifyId>);
|
||||
pub struct Artists(pub Vec<Artist>);
|
||||
|
||||
impl Deref for Artists {
|
||||
type Target = Vec<SpotifyId>;
|
||||
type Target = Vec<Artist>;
|
||||
fn deref(&self) -> &Self::Target {
|
||||
&self.0
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue