From f1b53cdbdc5b8ae233c93f81591805dac3df36d8 Mon Sep 17 00:00:00 2001 From: jnphilipp Date: Sat, 7 Oct 2017 23:10:48 +0200 Subject: [PATCH] Update view_in_mpv --- misc/userscripts/view_in_mpv | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/misc/userscripts/view_in_mpv b/misc/userscripts/view_in_mpv index dc6ad9e3f..9eb6ff7c6 100755 --- a/misc/userscripts/view_in_mpv +++ b/misc/userscripts/view_in_mpv @@ -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"