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() {