UnixTools/ytdl-multi.sh

7 lines
181 B
Bash
Executable File

#!/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 "{}"