Re:“YouTube-dl” and “Pirate Bay” back on DDG
by AdmiralAsshat on Sunday April 17, 2022 @12:50PM
(#31062213)
I noticed this recently, too. I frequently scrape concerts from YouTube by adding them to a private playlist and then running a script on my HTPC to pull down everything from that playlist. As recently as six months ago, pulling down a 2-3GB playlist file (maybe a 30-40 minute concert at 720P) took ten to fifteen minutes. The last time I tried it, it estimated several hours.
[ Parent
| on HN ]
FWIW, just recently wrote a go program that watches a Youtube playlist and downloads new videos to a configurable path: https://github.com/raine/ytdlwatch
I use it to download videos into a Plex library.
Re:“YouTube-dl” and “Pirate Bay” back on DDG
by soheil on Sunday April 17, 2022 @01:03PM
(#31062332)
If you're downloading a playlist you could run it in parallel to achieve your max network bandwidth speed:
function ytp() { youtube-dl --get-id "$1" | xargs -I '{}' -P 200 youtube-dl -i --embed-thumbnail --add-metadata -f 'bestaudio[ext=m4a]' -o '%(title)s.%(ext)s' 'https://youtube.com/watch?v={}'; }