youtube-dl -citw只下载一个视频而不是全部

时间:2014-06-03 08:08:49

标签: youtube download youtube-dl

我用过

user@ubuntu:~/Arbeitsfläche$ sudo youtube-dl -citw ytuser: raz\ malca

从此频道下载所有视频。但它只能加载一个:

user@ubuntu:~/Arbeitsfläche$ sudo youtube-dl -citw ytuser: raz\ malca
[generic] ytuser:: Requesting header
ERROR: Invalid URL protocol; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type  youtube-dl -U  to update.
WARNING: Falling back to youtube search for  raz malca . Set --default-search to "auto" to suppress this warning.
[youtube:search] query "raz malca": Downloading page 1
[download] Downloading playlist: raz malca
[youtube:search] playlist raz malca: Collected 1 video ids (downloading 1 of them)
[download] Downloading video #1 of 1
[youtube] Setting language
[youtube] R72vpqqNSDw: Downloading webpage
[youtube] R72vpqqNSDw: Downloading video info webpage
[youtube] R72vpqqNSDw: Extracting video information

我使用此程序的最新版本。 我的系统是ubuntu 13.10:)

有人有想法吗?

2 个答案:

答案 0 :(得分:2)

首先,不要使用sudo运行youtube-dl - 正常的用户权限就足够了。也绝对没有必要传递-ctw。但主要问题是您的命令行在ytuser:之后包含多余的空格。在任何情况下,即使空格不存在,raz malca也不是有效的YouTube用户ID。但是,有channel这样命名。只需将该频道的网址传入youtube-dl:

即可
youtube-dl -i https://www.youtube.com/channel/UCnmQSqOPhkawAdndZgjfanA

答案 1 :(得分:0)

找出频道的网址,对创建频道的用户进行检查。例如。对于频道组合 - o grande amor(Tom Jobim) - Chiba Kosei的Solo Guitar,右键单击(在Firefox中)Chiba Kosei并选择inspect元素。请注意,通道位于href部分中。所以复制那个,你的最终频道网址为https://youtube.com/channel/UC5q9SrhlCJ4YciPTLLNTR5w

a href =“/ channel / UC5q9SrhlCJ4YciPTLLNTR5w”class =“yt-uix-sessionlink g-hovercard spf-link”data-ytid =“UC5q9SrhlCJ4YciPTLLNTR5w”data-sessionlink =“itct = CDIQ4TkiEwjBvtSO7v3KAhWPnr4KHUYMDbko-B0”&gt; Chiba Kosei < / p>