✨ Stickers ✴️
This commit is contained in:
parent
d3a2695302
commit
6d4b8c1ebd
2 changed files with 15 additions and 0 deletions
|
|
@ -26,6 +26,10 @@ to quickly create a Cobra application.`,
|
|||
for k, v := range curr {
|
||||
fmt.Println(k, ":", v)
|
||||
}
|
||||
sticks, _ := mpd.StickersGetFor(curr["file"])
|
||||
for _, v := range sticks {
|
||||
fmt.Println(v.Name, "*:", v.Value)
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
|||
11
mpd/stickers.go
Normal file
11
mpd/stickers.go
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
package mpd
|
||||
|
||||
import "github.com/fhs/gompd/v2/mpd"
|
||||
|
||||
func StickersGetFor(file string) ([]mpd.Sticker, error) {
|
||||
if connerror != nil {
|
||||
return nil, connerror
|
||||
}
|
||||
|
||||
return conn.StickerList(file)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue