Add "real" TopSongs

This commit is contained in:
Deluan
2020-10-20 22:53:52 -04:00
parent b5e20c1934
commit 049ac70b2b
7 changed files with 119 additions and 3 deletions
+10
View File
@@ -3,6 +3,7 @@ package lastfm
type Response struct {
Artist Artist `json:"artist"`
SimilarArtists SimilarArtists `json:"similarartists"`
TopTracks TopTracks `json:"toptracks"`
}
type Artist struct {
@@ -42,6 +43,15 @@ type ArtistBio struct {
Content string `json:"content"`
}
type Track struct {
Name string `json:"name"`
MBID string `json:"mbid"`
}
type TopTracks struct {
Track []Track `json:"track"`
}
type Error struct {
Code int `json:"error"`
Message string `json:"message"`