bash 使用 youtube-dl 从频道下载新视频
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/21356764/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Use youtube-dl to download new videos from channel
提问by user2705775
I need to use youtube-dl to download new videos from a channel, but remember not to download them next time and only download videos that have not been downloaded yet. How can I do so?
我需要使用 youtube-dl 从频道下载新视频,但记住下次不要下载它们,只下载尚未下载的视频。我该怎么做?
回答by phihag
Use the --download-archive
option:
使用--download-archive
选项:
youtube-dl --download-archive ~/.mydownloads http://youtube.com/CHANNEL
The IDs of all downloaded videos will be recorded in the .mydownloads
file, and these videos will not be downloaded again.
所有下载的视频的ID都会被记录在.mydownloads
文件中,这些视频不会被再次下载。