Add play CLI commands for albums, playlists and tracks

This commit is contained in:
E1int
2025-08-06 00:52:46 +02:00
parent dbea096edf
commit 647984e92e
5 changed files with 89 additions and 4 deletions
+12
View File
@@ -44,6 +44,18 @@ func (c *Client) Pause() error {
return c.sendRequest(PausePath)
}
func (c *Client) PlayAlbum(id string, firstTrack int, shuffle bool) error {
return c.sendRequest(BuildPlayAlbumPath(id, firstTrack, shuffle))
}
func (c *Client) PlayPlaylist(id string, firstTrack int, shuffle bool) error {
return c.sendRequest(BuildPlayPlaylistPath(id, firstTrack, shuffle))
}
func (c *Client) PlayTrack(id string) error {
return c.sendRequest(BuildPlayTrackPath(id))
}
func (c *Client) PlayPause() error {
return c.sendRequest(PlayPausePath)
}