mrc

Function playlist_remove

Source
pub async fn playlist_remove(
    index: Option<usize>,
    socket_path: Option<&str>,
) -> Result<Option<Value>>
Expand description

Sends the playlist-remove command to remove an item from the playlist.

§Arguments

  • index: The index of the item to remove, or None to remove the current item.
  • socket_path: An optional custom socket path.

§Returns

A Result containing the response data.

§Errors

Returns an error if the connection to the socket fails or the command execution encounters issues.