Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(fileExt string, r PlaylistReader, w PlaylistWriter)
func ResetQueue ¶
func ResetQueue(queue []int)
ResetQueue resets the queue to the usual incremental order.
func ShuffleQueue ¶
func ShuffleQueue(queue []int)
ShuffleQueue shuffles the given list of track indices.
func SupportedExtensions ¶
func SupportedExtensions() []string
func TitleFromPath ¶
TitleFromPath grabs the file basename from the given path, which could be used as a title placeholder.
Types ¶
type FixableError ¶
FixableError is returned from PlaylistWriter if the error can be fixed automatically.
type PlaylistReader ¶
type PlaylistWriter ¶
type Track ¶
type Track struct { Title string Artist string Album string Genre string Date string Filepath string `json:",omitempty"` Number int Length time.Duration Bitrate int // Unprobeable is true if the Track cannot be probed. Unprobeable bool `json:"unprobeable,omitempty"` }
func (*Track) ForceProbe ¶
Click to show internal directories.
Click to hide internal directories.