fixed queue and movements

This commit is contained in:
2025-08-28 16:14:56 +02:00
parent 4a8f42cdd5
commit 1d0ae4b5b2
4 changed files with 29 additions and 22 deletions

View File

@@ -11,8 +11,6 @@ __mpv_command_with_args2() {
}
__mpv_get() {
foo "__mpv_get argument=$1"
foo "__mpv_get answer=$(__mpv_command_with_arg "expand-text" "$1" | $JQ -C)"
__mpv_command_with_arg "expand-text" "$1" | $JQ -r '.data'
}
@@ -37,16 +35,15 @@ mpv_start() {
mpv_play_list() {
t=$(mktemp)
cat >"$t"
foo "$(cat "$t")"
__mpv_command_with_arg "loadlist" "$t"
rm -f "$t"
}
mpv_queue_list() {
foo "mpv_queue_list"
t=$(mktemp)
cat >"$t"
foo "$(cat "$t")"
__mpv_command_with_arg "loadlist" "$t" "append-play"
__mpv_command_with_args2 "loadlist" "$t" "append-play"
rm -f "$t"
}