Created
July 29, 2017 22:55
-
-
Save linuxsocist/6d237fb80af3ec3b6ba2df728fb54408 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
URL=$1 | |
fmtID=$(youtube-dl --list-formats $URL | grep opus | tail -1 | cut -f 1 -d " ") | |
youtube-dl -f $fmtID $URL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment