From 34628fc9b0afec3cfe3b109209be701273dd8249 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=84min=20Baumeler?= Date: Wed, 27 Aug 2025 18:11:46 +0200 Subject: [PATCH] bugfix: mpv text expansion --- src/sh/api.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/sh/api.sh b/src/sh/api.sh index d860bb8..f7405f8 100644 --- a/src/sh/api.sh +++ b/src/sh/api.sh @@ -5,22 +5,19 @@ SLEEP_ON_ERROR=1 export MB_BROWSE_STEPS __mpv_command() { - echo "mpv_command: $*" >>/tmp/foo printf "{ \"command\": [\"%s\"] }\n" "$1" | $SOCAT - "$MPV_SOCKET" } __mpv_command_with_arg() { - echo "mpv_command_1: $*" >>/tmp/foo printf "{ \"command\": [\"%s\", \"%s\"] }\n" "$1" "$2" | $SOCAT - "$MPV_SOCKET" } __mpv_command_with_args2() { - echo "mpv_command_2: $*" >>/tmp/foo printf "{ \"command\": [\"%s\", \"%s\", \"%s\"] }\n" "$1" "$2" "$3" | $SOCAT - "$MPV_SOCKET" } __mpv_get() { - __mpv_command_with_arg "expand-text" "$2" | $JQ -r '.data' + __mpv_command_with_arg "expand-text" "$1" | $JQ -r '.data' } mpv_playlist_count() {