mirror of https://github.com/mpv-player/mpv
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:
parent
7d79cd57ff
commit
a8299cec29
|
@ -14,14 +14,12 @@ video_url="$(youtube-dl \
|
||||||
--user-agent="$user_agent" \
|
--user-agent="$user_agent" \
|
||||||
--cookies="$cookies_file" \
|
--cookies="$cookies_file" \
|
||||||
--get-url \
|
--get-url \
|
||||||
"$1")"
|
"$@")"
|
||||||
|
|
||||||
shift
|
|
||||||
|
|
||||||
$MPV \
|
$MPV \
|
||||||
--cookies \
|
--cookies \
|
||||||
--cookies-file="$cookies_file" \
|
--cookies-file="$cookies_file" \
|
||||||
--user-agent="$user_agent" \
|
--user-agent="$user_agent" \
|
||||||
"$@" -- $video_url
|
-- $video_url
|
||||||
|
|
||||||
rm -rf "$cookies_dir"
|
rm -rf "$cookies_dir"
|
||||||
|
|
Loading…
Reference in New Issue