summaryrefslogtreecommitdiffstats
path: root/data.go
diff options
context:
space:
mode:
authorGuillaume Horel <guillaume.horel@gmail.com>2016-11-22 22:41:59 -0500
committerGuillaume Horel <guillaume.horel@gmail.com>2016-11-22 22:41:59 -0500
commitfbb328b6c33470f8aec74fcb5e6e7d0388067c1e (patch)
tree6e33586135c23841e6760effc3b54835e7c2bb4c /data.go
parent47ae04e16e467d4fc2114c89e24efdb14223c8f4 (diff)
downloadlastfm-api-fbb328b6c33470f8aec74fcb5e6e7d0388067c1e.tar.gz
better marshalling
Diffstat (limited to 'data.go')
-rw-r--r--data.go8
1 files changed, 4 insertions, 4 deletions
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