pub async fn playlist_move(
from_index: usize,
to_index: usize,
socket_path: Option<&str>,
) -> Result<Option<Value>>Expand description
Sends the playlist-move command to move a playlist item from one index to another.
§Arguments
from_index: The index of the item to move.to_index: The index to move the item to.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.