From a8299cec2974836d5ea615cc2d12284ac2aca5c4 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 29 Aug 2014 20:20:29 +0200 Subject: TOOLS/youtube-dl_mpv: allow playing multiple URLs Unfortunately this also means you can't pass extra mpv options after the URL anymore. You can prefix the script with MPV='mpv --options' though. --- TOOLS/youtube-dl_mpv.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/TOOLS/youtube-dl_mpv.sh b/TOOLS/youtube-dl_mpv.sh index b16a054a5e..a29928b8b9 100755 --- a/TOOLS/youtube-dl_mpv.sh +++ b/TOOLS/youtube-dl_mpv.sh @@ -14,14 +14,12 @@ video_url="$(youtube-dl \ --user-agent="$user_agent" \ --cookies="$cookies_file" \ --get-url \ - "$1")" - -shift + "$@")" $MPV \ --cookies \ --cookies-file="$cookies_file" \ --user-agent="$user_agent" \ - "$@" -- $video_url + -- $video_url rm -rf "$cookies_dir" -- cgit v1.2.3