summaryrefslogtreecommitdiffstats
path: root/TOOLS
diff options
context:
space:
mode:
Diffstat (limited to 'TOOLS')
-rwxr-xr-xTOOLS/youtube-dl_mpv.sh6
1 files changed, 1 insertions, 5 deletions
diff --git a/TOOLS/youtube-dl_mpv.sh b/TOOLS/youtube-dl_mpv.sh
index 6bfe303705..6b15bd7a38 100755
--- a/TOOLS/youtube-dl_mpv.sh
+++ b/TOOLS/youtube-dl_mpv.sh
@@ -6,10 +6,6 @@ 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" \
@@ -17,7 +13,7 @@ video_url="$(youtube-dl \
"$@")"
set -f
-$MPV \
+${MPV:-mpv} \
--cookies \
--cookies-file="$cookies_file" \
--user-agent="$user_agent" \