diff options
| author | Guillaume Horel <guillaume.horel@gmail.com> | 2016-11-22 22:41:59 -0500 |
|---|---|---|
| committer | Guillaume Horel <guillaume.horel@gmail.com> | 2016-11-22 22:41:59 -0500 |
| commit | fbb328b6c33470f8aec74fcb5e6e7d0388067c1e (patch) | |
| tree | 6e33586135c23841e6760effc3b54835e7c2bb4c /main.go | |
| parent | 47ae04e16e467d4fc2114c89e24efdb14223c8f4 (diff) | |
| download | lastfm-api-fbb328b6c33470f8aec74fcb5e6e7d0388067c1e.tar.gz | |
better marshalling
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -67,14 +67,14 @@ func parseValues(values url.Values) map[int]url.Values { func parsePart(values url.Values) (Scrobble, error) { var scrobble Scrobble - scrobble.TrackName = values.Get("t") - scrobble.Artist = values.Get("a") + scrobble.TrackName = NewCorrectable(values.Get("t")) + scrobble.Artist = NewCorrectable(values.Get("a")) time, err := strconv.Atoi(values.Get("i")) if err != nil { return scrobble, errors.New("Could not parse timestamp") } scrobble.Time = time - scrobble.Album = values.Get("b") + scrobble.Album = NewCorrectable(values.Get("b")) scrobble.Mbid = values.Get("m") tn, err := strconv.Atoi(values.Get("n")) if err != nil { |
