TOOLS: remove youtube-dl_mpv.sh

It lost all reason to exist, since mpv includes ytdl_hook.lua by default.
This commit is contained in:
wm4 2015-03-13 20:32:55 +01:00
parent d64c9d8e8c
commit dfec71f55a
1 changed files with 0 additions and 22 deletions

View File

@ -1,22 +0,0 @@
#!/bin/sh
# Example of script for using mpv with youtube-dl
set -e
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
video_url=$(youtube-dl \
--user-agent="${user_agent}" \
--cookies="${cookies_file}" \
--get-url \
"$@")
set -f
${MPV:-mpv} \
--cookies \
--cookies-file="${cookies_file}" \
--user-agent="${user_agent}" \
-- ${video_url}
rm -rf "${cookies_dir}"