Add multiple genres to MediaFile
This commit is contained in:
+2
-2
@@ -3,8 +3,8 @@ package model
|
||||
type Genre struct {
|
||||
ID string `json:"id" orm:"column(id)"`
|
||||
Name string
|
||||
SongCount int
|
||||
AlbumCount int
|
||||
SongCount int `json:"-"`
|
||||
AlbumCount int `json:"-"`
|
||||
}
|
||||
|
||||
type Genres []Genre
|
||||
|
||||
@@ -28,6 +28,7 @@ type MediaFile struct {
|
||||
Duration float32 `json:"duration"`
|
||||
BitRate int `json:"bitRate"`
|
||||
Genre string `json:"genre"`
|
||||
Genres Genres `json:"genres"`
|
||||
FullText string `json:"fullText"`
|
||||
SortTitle string `json:"sortTitle,omitempty"`
|
||||
SortAlbumName string `json:"sortAlbumName,omitempty"`
|
||||
|
||||
Reference in New Issue
Block a user