diff --git a/internal/models/artist.go b/internal/models/artist.go index 86c88b0..d36a224 100644 --- a/internal/models/artist.go +++ b/internal/models/artist.go @@ -162,8 +162,10 @@ func (a *Artist) DeList(data []byte, c ClientInterface) ([]Model, error) { // Ratings represents artist ratings. type Ratings struct { - Rating float64 `json:"rating"` - Votes int `json:"votes"` + Rating int `json:"rating"` + Votes int `json:"votes"` + Week int `json:"week"` + Day int `json:"day"` } // Counts represents artist counts. diff --git a/internal/models/metatag.go b/internal/models/metatag.go index a8becd3..c3d0800 100644 --- a/internal/models/metatag.go +++ b/internal/models/metatag.go @@ -132,8 +132,8 @@ type MetatagSortByValue struct { // MetatagArtistEntry represents a metatag artist entry. type MetatagArtistEntry struct { BaseModel - Artist *Artist `json:"artist"` - Score float64 `json:"score"` + Artist *Artist `json:"artist"` + PopularTracks []Track `json:"popular_tracks"` } // Genre represents a genre from the Yandex Music API. diff --git a/internal/models/music_history.go b/internal/models/music_history.go index 1b74987..936527d 100644 --- a/internal/models/music_history.go +++ b/internal/models/music_history.go @@ -110,8 +110,7 @@ type MusicHistoryItemData struct { PlayContext *PlayContext `json:"play_context"` Position int `json:"position"` Duration int `json:"duration"` - Progress float64 `json:"progress"` -} + } // MusicHistoryItemID represents music history item ID. type MusicHistoryItemID struct { diff --git a/internal/models/radio.go b/internal/models/radio.go index a733f1b..55a8a70 100644 --- a/internal/models/radio.go +++ b/internal/models/radio.go @@ -192,8 +192,11 @@ func (r *RotorStation) DeList(data []byte, client ClientInterface) ([]Model, err // RotorSettings represents rotor station settings. type RotorSettings struct { BaseModel - Diversity float64 `json:"diversity"` - Energy float64 `json:"energy"` + Language string `json:"language"` + Diversity string `json:"diversity"` + Mood int `json:"mood"` + Energy int `json:"energy"` + MoodEnergy string `json:"mood_energy"` Acousticness float64 `json:"acousticness"` Instrumentalness float64 `json:"instrumentalness"` Live float64 `json:"live"`