Created
November 27, 2019 22:44
-
-
Save kowalcj0/076d4c0d73fd8a8bb4412885902c6698 to your computer and use it in GitHub Desktop.
Download all songs from a YT playlist in parallel and convert to 192kbps mp3
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
function dlistmp3() { | |
youtube-dl -j --flat-playlist "${1}" |\ | |
jq -r '.id' |\ | |
sed 's_^_https://www.youtube.com/watch?v=_' |\ | |
parallel -j4 'youtube-dl -f bestaudio --extract-audio --audio-format mp3 --audio-quality 192K --embed-thumbnail --add-metadata --no-post-overwrites --ignore-errors {}' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment