♻️ Song struct to hold song logic

This commit is contained in:
Dan Jones 2023-08-27 13:16:53 -05:00
commit 16933ce0fa
4 changed files with 50 additions and 7 deletions

View file

@ -21,12 +21,11 @@ Cobra is a CLI library for Go that empowers applications.
This application is a tool to generate the needed files
to quickly create a Cobra application.`,
Run: func(cmd *cobra.Command, args []string) {
conn, _ := mpd.GetConn()
curr, _ := conn.CurrentSong()
for k, v := range curr {
curr, _ := mpd.GetCurrent()
for k, v := range curr.Attrs {
fmt.Println(k, ":", v)
}
sticks, _ := mpd.StickersGetFor(curr["file"])
sticks, _ := curr.GetStickers()
for _, v := range sticks {
fmt.Println(v.Name, "*:", v.Value)
}