show playlist (buggy)
This commit is contained in:
@@ -11,6 +11,8 @@ __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'
|
||||
}
|
||||
|
||||
@@ -32,20 +34,20 @@ mpv_start() {
|
||||
$MPV --no-config --no-terminal --input-ipc-server="$MPV_SOCKET" --idle --no-osc --no-input-default-bindings &
|
||||
}
|
||||
|
||||
mpv_play_file() {
|
||||
__mpv_command_with_arg "loadfile" "$1"
|
||||
}
|
||||
|
||||
mpv_queue_file() {
|
||||
__mpv_command_with_args2 "loadfile" "$1" "append-play"
|
||||
}
|
||||
|
||||
mpv_play_list() {
|
||||
__mpv_command_with_arg "loadlist" "$1"
|
||||
t=$(mktemp)
|
||||
cat >"$t"
|
||||
foo "$(cat "$t")"
|
||||
__mpv_command_with_arg "loadlist" "$t"
|
||||
rm -f "$t"
|
||||
}
|
||||
|
||||
mpv_queue_list() {
|
||||
__mpv_command_with_arg "loadlist" "$1" "append-play"
|
||||
t=$(mktemp)
|
||||
cat >"$t"
|
||||
foo "$(cat "$t")"
|
||||
__mpv_command_with_arg "loadlist" "$t" "append-play"
|
||||
rm -f "$t"
|
||||
}
|
||||
|
||||
mpv_next() {
|
||||
|
Reference in New Issue
Block a user