mirror of
https://github.com/AynaLivePlayer/AynaLivePlayer.git
synced 2025-12-16 06:58:16 +08:00
add local provider, add cover output in textinfo
This commit is contained in:
@@ -5,10 +5,19 @@ import (
|
||||
"github.com/jinzhu/copier"
|
||||
)
|
||||
|
||||
type Picture struct {
|
||||
Url string
|
||||
Data []byte
|
||||
}
|
||||
|
||||
func (p Picture) Exists() bool {
|
||||
return p.Url != "" || p.Data != nil
|
||||
}
|
||||
|
||||
type Media struct {
|
||||
Title string
|
||||
Artist string
|
||||
Cover string
|
||||
Cover Picture
|
||||
Album string
|
||||
Lyric string
|
||||
Url string
|
||||
|
||||
Reference in New Issue
Block a user