From ea12c63870edd7ecd5d700e957ca8729d248b96b Mon Sep 17 00:00:00 2001 From: Markus Birth Date: Fri, 7 Apr 2017 02:32:13 +0200 Subject: [PATCH] Parallel youtube-dl. --- ytdl-multi.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 ytdl-multi.sh diff --git a/ytdl-multi.sh b/ytdl-multi.sh new file mode 100755 index 0000000..df53f34 --- /dev/null +++ b/ytdl-multi.sh @@ -0,0 +1,6 @@ +#!/bin/sh +if [ ! -f "download.txt" ]; then + echo "Create a file download.txt containing one URL per line." + exit 1 +fi +cat download.txt | xargs -P 6 -n 1 -I {} youtube-dl "{}"