summaryrefslogtreecommitdiffstats
path: root/src/lastfm/mod.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2018-11-06 23:26:02 -0500
committerJesse Luehrs <doy@tozt.net>2018-11-06 23:26:02 -0500
commit3f4a6ec11e55a1d5634ba24e2dfd32d9e1d70d65 (patch)
tree52c83d5495b734890ff0f6312273704311e45011 /src/lastfm/mod.rs
parenta47cdb90b8bfb91bccb7ea7d36a54115d429605d (diff)
downloadlastfm-query-3f4a6ec11e55a1d5634ba24e2dfd32d9e1d70d65.tar.gz
lastfm-query-3f4a6ec11e55a1d5634ba24e2dfd32d9e1d70d65.zip
make db syncing work
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()?,
})
})