我想存档 YouTube 频道中的所有视频,但我想根据标题以较低的质量保存一些视频,以较高的质量保存其他视频。
根据文档,它似乎--match-title
应该可以解决问题,但我遇到了一个障碍:它似乎也用于匹配播放列表标题,可以在检查任何视频标题之前停止频道遍历。例如:
$ youtube-dl --version
2021.01.24.1
$ youtube-dl --match-title Oscilloscope --simulate https://www.youtube.com/c/EevblogDave
[youtube:tab] EevblogDave: Downloading webpage
[download] Downloading playlist: EEVblog - Home
[youtube:tab] playlist EEVblog - Home: Downloading 5 videos
[download] Downloading video 1 of 5
[download] "Uploads" title did not match pattern "Oscilloscope"
[download] Downloading video 2 of 5
[download] "Popular uploads" title did not match pattern "Oscilloscope"
[download] Downloading video 3 of 5
[download] "Multimeter Reviews" title did not match pattern "Oscilloscope"
[download] Downloading video 4 of 5
[download] "Electronics Tutorials" title did not match pattern "Oscilloscope"
[download] Downloading video 5 of 5
[download] "Created playlists" title did not match pattern "Oscilloscope"
[download] Finished downloading playlist: EEVblog - Home
$
我觉得--match-title Oscilloscope
应该已匹配EEVblog #1368 - 有源示波器探头比较(第 2 部分),但事实并非如此,因为所有频道播放列表的标题中都没有“示波器”。
我怎样才能接受匹配某个频道上的所有视频而不遇到此问题?
答案1
只需添加/videos
到您的 URL 末尾即可。