Update view_in_mpv

This commit is contained in:
jnphilipp 2017-10-07 23:10:48 +02:00 committed by GitHub
parent e0c76fcb4f
commit f1b53cdbdc

View File

@ -49,7 +49,7 @@ msg() {
MPV_COMMAND=${MPV_COMMAND:-mpv}
# 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 )
js() {
@ -140,8 +140,4 @@ printjs() {
echo "jseval -q $(printjs)" >> "$QUTE_FIFO"
msg info "Opening $QUTE_URL with mpv"
if [[ $QUTE_URL == *"list="* ]]; then
"${video_command[@]}" "--ytdl-raw-options=yes-playlist=" "$QUTE_URL"
else
"${video_command[@]}" "$QUTE_URL"
fi
"${video_command[@]}" "$@" "$QUTE_URL"