diff options
author | shdown <shdownnine@gmail.com> | 2014-08-30 20:30:21 +0400 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-08-30 19:23:42 +0200 |
commit | cbe03b62552679aa7eb8fc844a4ae81669c0c9ed (patch) | |
tree | 4c80ece1324cb84c4686b36931c52c232538394a | |
parent | 43d46670288818c39612378755c66289b33a7bfd (diff) | |
download | mpv-cbe03b62552679aa7eb8fc844a4ae81669c0c9ed.tar.bz2 mpv-cbe03b62552679aa7eb8fc844a4ae81669c0c9ed.tar.xz |
TOOLS/youtube-dl_mpv.sh: simplify $MPV handling
-rwxr-xr-x | TOOLS/youtube-dl_mpv.sh | 6 |
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" \ |