我想通过 youtube-dl 下载多个播放列表。为 URL 链接创建了批处理文件。但是当中断发生后,youtube-dl 会重新开始下载并一遍又一遍地检查每个链接,而再次检查已下载的视频是一项非常耗时的任务?如何避免在 youtube-dl 中重复检查?我使用以下命令。
youtube-dl -a -c -i batchfileofurls.txt
但一旦发生中断,就会耗费大量时间。我希望避免在成功下载特定视频或链接后再执行后续任务。
[youtube:playlist] Downloading playlist PLnVcHd3TXd2rH_d1U7LT1BzrsOgUouhfJ - add
--no-playlist to just download video G0HCqSe__3Q
[youtube:playlist] PLnVcHd3TXd2rH_d1U7LT1BzrsOgUouhfJ: Downloading webpage
[download] Downloading playlist: #YodaHacks
[youtube:playlist] playlist #YodaHacks: Downloading 5 videos
[download] Downloading video 1 of 5
[youtube] G0HCqSe__3Q: Downloading webpage
[youtube] G0HCqSe__3Q: Downloading video info webpage
[download] How To Create A Storyboard Presentation-G0HCqSe__3Q.mp4 has already b
een downloaded
[download] 100% of 17.99MiB
[download] Downloading video 2 of 5
[youtube] Xvx13TrmWLU: Downloading webpage
[youtube] Xvx13TrmWLU: Downloading video info webpage
[download] 7 Killer Chrome Tricks-Xvx13TrmWLU.mp4 has already been downloaded
[download] 100% of 11.16MiB
[download] Downloading video 3 of 5
[youtube] y4L8g9ARz3Q: Downloading webpage
[youtube] y4L8g9ARz3Q: Downloading video info webpage
[download] Read Faster And Smarter-y4L8g9ARz3Q.mp4 has already been downloaded
[download] 100% of 14.32MiB
[download] Downloading video 4 of 5
[youtube] _G9oBDaonOE: Downloading webpage
[youtube] _G9oBDaonOE: Downloading video info webpage
[download] 4 Fun Facts About Google You Never Knew-_G9oBDaonOE.mp4 has already b
een downloaded
[download] 100% of 9.72MiB
答案1
运行后youtube-dl --help
,我得到了适当的解决方案。
E:\youtube-dl --download-archive archive.txt -c -i -w -a batchfileofurls.txt
通过使用--download-archive archive.txt
命令我节省了大量的重新检查时间。