gspot/src/components/commands/like.go

10 lines
212 B
Go
Raw Normal View History

2024-02-18 09:30:19 +00:00
package commands
func (c *Commander) Like() error {
playing, err := c.Client.PlayerCurrentlyPlaying(c.Context)
if err != nil {
return err
}
return c.Client.AddTracksToLibrary(c.Context, playing.Item.ID)
}