Last active
September 13, 2018 02:54
-
-
Save scateu/a11abf7eadc1d4315efa1ce7386cd9a9 to your computer and use it in GitHub Desktop.
youtube-dl-audio-very-fast.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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