YoutubeExtractor icon indicating copy to clipboard operation
YoutubeExtractor copied to clipboard

Not working again

Open kelvinRosa opened this issue 6 years ago • 1 comments

I noticed that youtubedl is working normal, how can i do the same steps here?

kelvinRosa avatar Jan 07 '19 16:01 kelvinRosa

I think i fixed, change "http://s.ytimg.com/yts/jsbin/player_{0}.js" or "http://s.ytimg.com/yts/jsbin/player-{0}.js" to "http://s.ytimg.com/yts/jsbin/player_ias-{0}.js"

and GetHtml5PlayerVersion function to:

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");
    }

kelvinRosa avatar Jan 07 '19 16:01 kelvinRosa