Files
supersonic/backend/mediaprovider/model.go
T
natilou f26e9dbcbf Add UI for viewing the album info returned by Subsonic getAlbumInfo API
- Adding "Get Info" in album page's "meatball" menu. When the option is clicked a pop up appears with
the album information and links to Last.fm and MusicBrainz.

Screenshot:

Fixes #105
2023-06-27 09:48:36 -03:00

90 lines
1.4 KiB
Go

package mediaprovider
type Album struct {
ID string
CoverArtID string
Name string
Duration int
ArtistIDs []string
ArtistNames []string
Year int
Genres []string
TrackCount int
Favorite bool
}
type AlbumWithTracks struct {
Album
Tracks []*Track
}
type AlbumInfo struct {
Info string
LastFMUrl string
MusicBrainzID string
}
type Artist struct {
ID string
CoverArtID string
Name string
Favorite bool
AlbumCount int
}
type ArtistWithAlbums struct {
Artist
Albums []*Album
}
type ArtistInfo struct {
Biography string
LastFMUrl string
ImageURL string
SimilarArtists []*Artist
}
type Genre struct {
Name string
AlbumCount int
TrackCount int
}
type Track struct {
ID string
CoverArtID string
ParentID string
Name string
Duration int
TrackNumber int
DiscNumber int
Genre string
ArtistIDs []string
ArtistNames []string
Album string
AlbumID string
Year int
Rating int
Favorite bool
Size int64
PlayCount int
FilePath string
BitRate int
}
type Playlist struct {
ID string
CoverArtID string
Name string
Description string
Public bool
Owner string
Duration int
TrackCount int
}
type PlaylistWithTracks struct {
Playlist
Tracks []*Track
}