YoutubeExtractor icon indicating copy to clipboard operation
YoutubeExtractor copied to clipboard

Does not work

Open shannalajoie opened this issue 7 years ago • 3 comments

Can get it to work :(

{"Could not parse the Youtube page for URL http://youtube.com/watch?v=q04EQj3tKo0\nThis may be due to a change of the Youtube page structure.\nPlease report this bug at www.github.com/flagbug/YoutubeExtractor/issues"}

Help?

shannalajoie avatar Jan 17 '19 19:01 shannalajoie

hey, this helped me:

Replace GetHtml5PlayerVersion() in DownloadUrlResolver.cs with this:

private static string GetHtml5PlayerVersion(JObject json)
{
var regex = new Regex(@"player_ias-(.+?).js");

    string js = json["assets"]["js"].ToString();

    Match match = regex.Match(js);
    if (match.Success) return match.Result("$1");

    regex = new Regex(@"player-(.+?).js");
    
    return regex.Match(js).Result("$1");
}

You will then need to rebuild your Project

francismolke avatar Jan 18 '19 01:01 francismolke

I can downloadVideo, but when i try to DownloadAudio, all the infos have the CanExtractAudio property set to false. Whats up with that, can anybody help?

shannalajoie avatar Jan 18 '19 19:01 shannalajoie

Parse exception

digydigy avatar Jan 18 '19 19:01 digydigy