mirror of
https://github.com/AynaLivePlayer/AynaLivePlayer.git
synced 2025-12-11 20:58:13 +08:00
* rewrite * update submodule * make width height configurable * update dependency * update * update file * update dep * fix basic config layout * update plugin management * more stuff * add blacklist * fix todo * fix windows gethandle * update windows update guide * update windows build guide * include go mod tidy in script * update todo * fix source session * fix text output * add plugin play duration control * fix id diange not working * update todo * update version number
32 lines
507 B
Go
32 lines
507 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"
|
|
PlaylistIDHistory PlaylistID = "history"
|
|
)
|
|
|
|
type PlaylistInfo struct {
|
|
Meta miaosic.MetaData
|
|
Title string
|
|
}
|
|
|
|
func (p PlaylistInfo) DisplayName() string {
|
|
if p.Title != "" {
|
|
return p.Title
|
|
}
|
|
return p.Meta.ID()
|
|
}
|