From 3ec6705e3410e96d74b108cb444b826749d8217c Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 26 Aug 2014 20:47:30 +0200 Subject: TOOLS: youtube wrapper: allow overriding mpv binary --- TOOLS/youtube-dl_mpv.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'TOOLS') diff --git a/TOOLS/youtube-dl_mpv.sh b/TOOLS/youtube-dl_mpv.sh index cfa34573bc..b16a054a5e 100755 --- a/TOOLS/youtube-dl_mpv.sh +++ b/TOOLS/youtube-dl_mpv.sh @@ -6,6 +6,10 @@ cookies_dir="$(mktemp -d /tmp/youtube-dl_mpv.XXXX)" cookies_file="${cookies_dir}/cookies" user_agent="$(youtube-dl --dump-user-agent)" # or set whatever you want +if [ -z "$MPV" ] ; then + MPV=mpv +fi + video_url="$(youtube-dl \ --user-agent="$user_agent" \ --cookies="$cookies_file" \ @@ -14,7 +18,7 @@ video_url="$(youtube-dl \ shift -mpv \ +$MPV \ --cookies \ --cookies-file="$cookies_file" \ --user-agent="$user_agent" \ -- cgit v1.2.3