summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-08-29 20:20:29 +0200
committerwm4 <wm4@nowhere>2014-08-29 20:20:29 +0200
commita8299cec2974836d5ea615cc2d12284ac2aca5c4 (patch)
tree3716e0af9f7902c684d8cf308b80a42594d4f3e7
parent7d79cd57ff9d4e5b7382d94fac7fd78bdda4857a (diff)
downloadmpv-a8299cec2974836d5ea615cc2d12284ac2aca5c4.tar.bz2
mpv-a8299cec2974836d5ea615cc2d12284ac2aca5c4.tar.xz
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.
-rwxr-xr-xTOOLS/youtube-dl_mpv.sh6
1 files 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"