问题描述
前段时间,我打开了一个线程(底部的链接).我很高兴地说,它已经得到修复,部分是固定的.它仍然使用错误的youtube链接.而且由于youtube会不断更新所有示例,因此我可以找到损坏的地方.我认为这与常规"表达式有关.有人可以启发我这个话题吗?
A Little time ago I opend a thread (link at the bottom).And I'm happy to say it has been fixed, that is partially.It still uses the wrong youtube links.And since youtube keeps updating all examples i could find where broken.I think this has to do with the "regular" expressions.Could someone enlighten me on that subject?
现在针对手头的错误:System.dll中发生了类型为'System.Net.WebException'的未处理的异常附加信息:远程服务器返回错误:(403)禁止.在第22行:wc.DownloadFile(kvp.Value,@"C:\ Users \ waralot \ Downloads \ youtube \" + kvp.Key);
And now for the error at hand:An unhandled exception of type 'System.Net.WebException' occurred in System.dllAdditional information: The remote server returned an error: (403) Forbidden.At Line 22: wc.DownloadFile(kvp.Value, @"C:\Users\waralot\Downloads\youtube\"+kvp.Key);
编译期间的控制台在这里:pastebin.com/BrgKkAmk
The console during compilation is here: pastebin.com/BrgKkAmk
HackForums的原始项目: http://www.hackforums.net/showthread. php?tid = 2052105
Original project at HackForums: http://www.hackforums.net/showthread.php?tid=2052105
我当前的版本: http://pastebin.com/2iH2vQ2L
再次在这里找到我的第一个线程:将Youtube下载程序从VB转换为C#
Again my first thread can be found here: Converting a Youtube downloader form VB to C#
推荐答案
看看我的 YoutubeExtractor 图书馆.它提供了从YouTube下载视频的方法.
Take a look at my YoutubeExtractor library. It provides methods to download videos from YouTube.
这篇关于修复youtube下载程序类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!