summaryrefslogtreecommitdiffstats
path: root/src/lastfm/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lastfm/mod.rs')
-rw-r--r--src/lastfm/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lastfm/mod.rs b/src/lastfm/mod.rs
index ea23ee5..a4ec8eb 100644
--- a/src/lastfm/mod.rs
+++ b/src/lastfm/mod.rs
@@ -15,8 +15,8 @@ pub struct LastFMClient {
pub struct Track {
pub artist: String,
- pub name: String,
pub album: String,
+ pub name: String,
pub timestamp: i64,
}
@@ -66,8 +66,8 @@ impl<'a> Tracks<'a> {
.map(|t| {
Ok(Track {
artist: t.artist.text.clone(),
- name: t.name.clone(),
album: t.album.text.clone(),
+ name: t.name.clone(),
timestamp: t.date.uts.parse()?,
})
})