From 6b2ba290e2e0fb011b2d5e33d8eae97e543e36c0 Mon Sep 17 00:00:00 2001 From: mredouane Date: Fri, 22 Mar 2019 16:32:38 +0100 Subject: [PATCH] Fix the issue #329 YoutubeExtractor.YoutubeParseException : Could not parse the Youtube page for URL --- YoutubeExtractor/YoutubeExtractor/DownloadUrlResolver.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/YoutubeExtractor/YoutubeExtractor/DownloadUrlResolver.cs b/YoutubeExtractor/YoutubeExtractor/DownloadUrlResolver.cs index 6896edf..6f14cdd 100644 --- a/YoutubeExtractor/YoutubeExtractor/DownloadUrlResolver.cs +++ b/YoutubeExtractor/YoutubeExtractor/DownloadUrlResolver.cs @@ -230,7 +230,7 @@ private static string GetDecipheredSignature(string htmlPlayerVersion, string si private static string GetHtml5PlayerVersion(JObject json) { - var regex = new Regex(@"player-(.+?).js"); + var regex = new Regex(@"player_(.+?).js"); string js = json["assets"]["js"].ToString(); @@ -331,4 +331,4 @@ private class ExtractionInfo public Uri Uri { get; set; } } } -} \ No newline at end of file +}