Documentation
¶
Overview ¶
Package ui is the Bubble Tea TUI for OpenDeezer: a menu/list browser with an always-visible now-playing footer. Network calls run as tea.Cmds.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Version = "dev"
Version is the app version, set from main at startup.
Functions ¶
func LoadARL ¶
func LoadARL() string
LoadARL resolves the Deezer ARL from, in order: $DEEZER_ARL, then ~/.config/opendeezer/arl.txt. Returns "" if neither is set.
func LoadQuality ¶
func LoadQuality() int
LoadQuality reads the persisted quality level: 0=Normal, 1=High, 2=HiFi.
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model is the root Bubble Tea model.
func (*Model) StartMedia ¶
StartMedia wires OS media controls (MPRIS) to the running program. Commands from the desktop are delivered as mediaCmdMsg via the program's Send so they run on the Bubble Tea update loop. Call after tea.NewProgram, before Run.
Click to show internal directories.
Click to hide internal directories.