mirror of
https://github.com/AynaLivePlayer/miaosic.git
synced 2025-12-06 13:02:48 +08:00
30 lines
529 B
Go
30 lines
529 B
Go
package tag
|
|
|
|
type Picture struct {
|
|
Mimetype string
|
|
Type byte
|
|
Description string
|
|
Data []byte
|
|
}
|
|
|
|
func (p Picture) TypeName() string {
|
|
return pictureTypes[p.Type]
|
|
}
|
|
|
|
type Lyrics struct {
|
|
Lang string `json:"lang"`
|
|
Lyrics string `json:"lyrics"`
|
|
}
|
|
|
|
type Metadata struct {
|
|
Format string `json:"format"`
|
|
Mimetype string `json:"mimetype"`
|
|
|
|
Title string `json:"title"`
|
|
Artist string `json:"artist"`
|
|
Album string `json:"album"`
|
|
|
|
Lyrics []Lyrics `json:"lyrics"`
|
|
Pictures []Picture `json:"pictures"`
|
|
}
|