Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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