From a92593a740040d0a9ab381f6f8bfc1a5c2432f1a Mon Sep 17 00:00:00 2001 From: gutmet Date: Tue, 13 Oct 2020 21:12:52 +0200 Subject: [PATCH] add script for parallel youtube audio download --- youtube-audio-par-dl | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 youtube-audio-par-dl diff --git a/youtube-audio-par-dl b/youtube-audio-par-dl new file mode 100755 index 0000000..d2b2635 --- /dev/null +++ b/youtube-audio-par-dl @@ -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