mirror of
https://github.com/AynaLivePlayer/AynaLivePlayer.git
synced 2025-12-06 18:32:50 +08:00
31 lines
463 B
Go
31 lines
463 B
Go
package model
|
|
|
|
import "github.com/AynaLivePlayer/miaosic"
|
|
|
|
type PlaylistMode int
|
|
|
|
const (
|
|
PlaylistModeNormal PlaylistMode = iota
|
|
PlaylistModeRandom
|
|
PlaylistModeRepeat
|
|
)
|
|
|
|
type PlaylistID string
|
|
|
|
const (
|
|
PlaylistIDPlayer PlaylistID = "player"
|
|
PlaylistIDSystem PlaylistID = "system"
|
|
)
|
|
|
|
type PlaylistInfo struct {
|
|
Meta miaosic.MetaData
|
|
Title string
|
|
}
|
|
|
|
func (p PlaylistInfo) DisplayName() string {
|
|
if p.Title != "" {
|
|
return p.Title
|
|
}
|
|
return p.Meta.ID()
|
|
}
|