add script for parallel youtube audio download

This commit is contained in:
gutmet 2020-10-13 21:12:52 +02:00
parent 6665455fb8
commit a92593a740

7
youtube-audio-par-dl Executable file
View File

@ -0,0 +1,7 @@
#!/usr/bin/env bash
# only works with new versions of youtube-dl that don't shuffle the json dump!
# pass url of youtube playlist as argument and download in parallel
youtube-dl "$1" --flat-playlist -j | awk '{print $2}' | tr -d ',"' | awk '{print "https://www.youtube.com/watch?v=" $0}' | xargs -n 1 -P 10 youtube-audio-dl