diff options
author | wm4 <wm4@nowhere> | 2014-08-29 20:20:29 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-08-29 20:20:29 +0200 |
commit | a8299cec2974836d5ea615cc2d12284ac2aca5c4 (patch) | |
tree | 3716e0af9f7902c684d8cf308b80a42594d4f3e7 | |
parent | 7d79cd57ff9d4e5b7382d94fac7fd78bdda4857a (diff) | |
download | mpv-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-x | TOOLS/youtube-dl_mpv.sh | 6 |
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" |