1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-03 05:22:23 +00:00

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.
This commit is contained in:
wm4 2014-08-29 20:20:29 +02:00
parent 7d79cd57ff
commit a8299cec29

View File

@ -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"