Merge pull request #3057 from jnphilipp/master
Support playlist in mpv userscript.
This commit is contained in:
commit
13b7647443
@ -49,7 +49,7 @@ msg() {
|
|||||||
|
|
||||||
MPV_COMMAND=${MPV_COMMAND:-mpv}
|
MPV_COMMAND=${MPV_COMMAND:-mpv}
|
||||||
# Warning: spaces in single flags are not supported
|
# Warning: spaces in single flags are not supported
|
||||||
MPV_FLAGS=${MPV_FLAGS:- --force-window --no-terminal --keep-open=yes --ytdl }
|
MPV_FLAGS=${MPV_FLAGS:- --force-window --no-terminal --keep-open=yes --ytdl --ytdl-raw-options=yes-playlist=}
|
||||||
video_command=( "$MPV_COMMAND" $MPV_FLAGS )
|
video_command=( "$MPV_COMMAND" $MPV_FLAGS )
|
||||||
|
|
||||||
js() {
|
js() {
|
||||||
@ -140,4 +140,4 @@ printjs() {
|
|||||||
echo "jseval -q $(printjs)" >> "$QUTE_FIFO"
|
echo "jseval -q $(printjs)" >> "$QUTE_FIFO"
|
||||||
|
|
||||||
msg info "Opening $QUTE_URL with mpv"
|
msg info "Opening $QUTE_URL with mpv"
|
||||||
"${video_command[@]}" "$QUTE_URL"
|
"${video_command[@]}" "$@" "$QUTE_URL"
|
||||||
|
Loading…
Reference in New Issue
Block a user