M HYPE SPLASH
// news

Make youtube-dl download only necessary pages from YouTube

By Michael Henderson

I am downloading audios from YouTube channel with following line:

/usr/local/bin/youtube-dl -o "%(upload_date)s %(title)s.%(ext)s" --write-annotations --download-archive "$ArchiveFile" --add-metadata --max-downloads $MaxDownloads -f "bestaudio[ext=webm]" -i "$ChannelPath"

This is fine when a channel doesn't contain many videos, but for huge channels there are just too much pages, and I see:

[youtube:tab] Downloading page 1
[youtube:tab] Downloading page 1
[youtube:tab] Downloading page 1
................
[youtube:tab] Downloading page 150
[youtube:tab] Downloading page 151
[youtube:tab] Downloading page 152

It downloads all the pages before starting to download audios even when I want to download just 10 audios with --max-downloads 10.

I would like that it downloads page 1 and when it contains more that 10 audios that haven't been retrieved yet, it doesn't download all other pages.

Is it possible?

Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy