Created
May 31, 2020 19:49
-
-
Save ratacibernetica/d03fe961a4953f17ca2cb121b94f668d to your computer and use it in GitHub Desktop.
Download YouTube audio only, best quality available
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
#!/bin/bash | |
VIDEO_URL=$@ | |
echo "Downloading ${VIDEO_URL}\n" | |
youtube-dl -F $VIDEO_URL | grep "audio only" | sort -nr | awk 'NR==1{print $1}' | xargs -I{} youtube-dl -f {} $VIDEO_URL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment