From fc0f5810f93b6406aa23780bd9357c8169070cb2 Mon Sep 17 00:00:00 2001 From: Guillaume Horel Date: Thu, 24 Nov 2016 21:46:30 -0500 Subject: json and xml marshalling almost working --- data.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'data.go') diff --git a/data.go b/data.go index a844630..3327ca4 100644 --- a/data.go +++ b/data.go @@ -12,14 +12,14 @@ import ( type Scrobble struct { Artist Correctable `xml:"artist" json:"artist"` AlbumArtist Correctable `xml:"albumArtist" json:"albumArtist"` - TrackName Correctable `xml:"track" json:"albumArtist"` - Album Correctable `xml:"album" json:album"` - TrackNumber int - Duration int - Time int - Chosen bool - Mbid string - Session string + TrackName Correctable `xml:"track" json:"track"` + Album Correctable `xml:"album" json:"album"` + TrackNumber int `xml:"-" json:"-"` + Duration int `xml:"-" json:"-"` + Time int `xml:"timestamp" json:"timestamp,string"` + Chosen bool `xml:"-" json:"-"` + Mbid string `xml:"-" json:"-"` + Session string `xml:"-" json:"-"` } type Session struct { -- cgit v1.2.3-70-g09d2