Skip to content

Instantly share code, notes, and snippets.

@scateu
Last active September 13, 2018 02:54
Show Gist options
  • Save scateu/a11abf7eadc1d4315efa1ce7386cd9a9 to your computer and use it in GitHub Desktop.
Save scateu/a11abf7eadc1d4315efa1ce7386cd9a9 to your computer and use it in GitHub Desktop.
youtube-dl-audio-very-fast.sh
trap abort SIGINT
abort() {
echo "Abort."
exit
}
timelimit -p -t20 -T10 youtube-dl --proxy socks5://localhost:1080 -f bestaudio $1
RET=$?
while [ $RET -ne 0 ]
do
timelimit -p -t20 -T10 youtube-dl --proxy socks5://localhost:1080 -f bestaudio $1
RET=$?
sleep 0.2
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment