feat(ipc): add an endpoint for getting current track (#911)

This commit is contained in:
tdakkota
2026-04-20 19:36:11 -07:00
committed by GitHub
parent 56546a9314
commit cfa45a4647
10 changed files with 94 additions and 18 deletions
+4
View File
@@ -118,6 +118,10 @@ func (c *Client) AdjustVolumePct(pct float64) error {
return err
}
func (c *Client) CurrentTrack() (string, error) {
return c.sendRequest(CurrentTrackPath)
}
func (c *Client) RateCurrentTrack(rating int) error {
_, err := c.sendRequest(BuildRateCurrentTrackPath(rating))
return err