rg3/youtube-dl — Issue #241: For ripping from multiple channels + bandwidth limiting
Author: vispi
Created: 2011-12-03 14:25:44+00:00
State: open

For downloading from multiple channels I made a little script. You have to manually create folders but other than that, it seems to work quite well. For additional functionality we could add support for limiting the bandwidth the script is using with trickle or similar.

#/bin/bash
#Set base folder fow downloads
yts='/home/user/youtube-dl/'
#In the base folder create folders named the same as youtube channels you want to rip
for f in $yts/*/; do echo "Processing $f"
cd $f
#Strip youtube channel name from file path
user=$(basename $f)
#Youtube-dl options
youtube-dl -w -i -t --extract-audio "http://www.youtube.com/user/$user"
done
#For more automation add script to cron