aboutsummaryrefslogtreecommitdiff
path: root/youtube-par-dl
blob: 070a0f38a9a063bc11c91222a69c0f1923d2f3b5 (plain)
1
2
3
4
5
6
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-dl