我想从youtube下载一个播放列表,播放列表中的前6个视频已经被他们的频道删除了。当我尝试用youtube-dl下载它时,它被插入,因为第一个视频没有被找到。然后,它将终止,但不再继续下载下一个视频。如何从播放列表中的第7n段视频下载播放列表。
我用的命令。
youtube-dl -f 22 https://www.youtube.com/playlist?list=PLO-hrPk0zuI18xlF_480s6UiaGD7hBqJa
发布于 2016-12-05 12:41:09
您可以使用以下开关:
--playlist-items ITEM_SPEC Playlist video items to download. Specify
indices of the videos in the playlist
separated by commas like: "--playlist-items
1,2,5,8" if you want to download videos
indexed 1, 2, 5, 8 in the playlist. You can
specify range: "--playlist-items
1-3,7,10-13", it will download the videos
at index 1, 2, 3, 7, 10, 11, 12 and 13.
所以应该是:
youtube-dl -f 22 --playlist-items 7-X https://www.youtube.com/playlist?list=PLO-hrPk0zuI18xlF_480s6UiaGD7hBqJa
其中X是播放列表中的视频数量。
发布于 2018-06-24 20:27:37
youtube-dl
有一个选项-i
,它将按您的要求执行,跳过已删除/限制的项目,并在播放列表中下载任何可用的内容。请参阅手册页(man youtube-dl
)的“选项”部分。
https://askubuntu.com/questions/857265
复制相似问题