Skip to content
This repository has been archived by the owner on Sep 28, 2020. It is now read-only.

Can't download youtube video #359

Open
Hamza-Almass opened this issue Jul 9, 2019 · 1 comment
Open

Can't download youtube video #359

Hamza-Almass opened this issue Jul 9, 2019 · 1 comment

Comments

@Hamza-Almass
Copy link

I got this error wjhen I try to fetch video url :

YoutubeParseException: Could not parse the Youtube page for URL http://youtube.com/watch?v=ZYRfUoR9Q4Y This may be due to a change of the Youtube page structure. Please report this bug at www.github.com/flagbug/YoutubeExtractor/issues

@gonzogonzales
Copy link

I have changed the GetHtml5PlayerVersion methoed and so the portable version worked for me:
private static string GetHtml5PlayerVersion(JObject json)
{
var regex = new Regex(@"player_(.+?).js");

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

        return regex.Match(js).Result("$1");
    }

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants