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 152It 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