From fbb328b6c33470f8aec74fcb5e6e7d0388067c1e Mon Sep 17 00:00:00 2001 From: Guillaume Horel Date: Tue, 22 Nov 2016 22:41:59 -0500 Subject: better marshalling --- data.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'data.go') diff --git a/data.go b/data.go index bced353..a844630 100644 --- a/data.go +++ b/data.go @@ -10,10 +10,10 @@ import ( ) type Scrobble struct { - Artist string - AlbumArtist string - TrackName string - Album string + 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 -- cgit v1.2.3-70-g09d2