youtube-dl -i -o "%%(playlist_index)s-%%(title)s-%%(uploader)s-%%(id)s" --get-filename --skip-download https://www.youtube.com/playlist?list=PLxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx > log.txt
我希望结果输出列表用新行分隔(每个视频文件名用一行分隔)
答案1
如果使用单个百分号,则效果如下:
youtube-dl -i -o "%(playlist_index)s-%(title)s-%(uploader)s-%(id)s" --get-filename --skip-download https://www.youtube.com/playlist?list=..... > log.txt