diff --git a/FoxTube.Background/FoxTube.Background.csproj b/FoxTube.Background/FoxTube.Background.csproj index e8b0cea..4dbe1ff 100644 --- a/FoxTube.Background/FoxTube.Background.csproj +++ b/FoxTube.Background/FoxTube.Background.csproj @@ -128,7 +128,7 @@ 1.29.2.1006 - 1.13.2 + 2.1.1 6.2.8 @@ -137,7 +137,7 @@ 5.1.1 - 4.6.7 + 4.7.6 diff --git a/FoxTube/Assets/Data/Patchnotes.xml b/FoxTube/Assets/Data/Patchnotes.xml index 56a7d77..09510f7 100644 --- a/FoxTube/Assets/Data/Patchnotes.xml +++ b/FoxTube/Assets/Data/Patchnotes.xml @@ -3,6 +3,7 @@ ### What's new: +- Fixed video playback problems - Fixed some cases when playlist cards aren't displayed - Fixed some cases when the app crashes - Fixed app crashes on trying to navigate to not existing channel/playlist/video @@ -13,6 +14,7 @@ - Corrected misspells in English localization ### Что нового: +- Исправлены проблемы с воспроизведением видео - Исправлены некоторые случаи при которых карточки плейлистов не отображались - Исправлены некоторые случай при которых приложение вылетало - Исправлены вылеты приложения при попытке перейти на несуществующий канал/плейлист/видео diff --git a/FoxTube/Classes/ManifestGenerator.cs b/FoxTube/Classes/ManifestGenerator.cs index 3be4856..6cea736 100644 --- a/FoxTube/Classes/ManifestGenerator.cs +++ b/FoxTube/Classes/ManifestGenerator.cs @@ -1,5 +1,5 @@ -using AngleSharp.Dom.Html; -using AngleSharp.Parser.Html; +using AngleSharp.Html.Dom; +using AngleSharp.Html.Parser; using Google.Apis.YouTube.v3.Data; using Microsoft.AppCenter.Analytics; using Newtonsoft.Json.Linq; @@ -141,7 +141,7 @@ namespace FoxTube.Controls.Player HttpClient http = new HttpClient(); string response = await http.GetStringAsync($"https://youtube.com/watch?v={info.Id}&disable_polymer=true&bpctr=9999999999&hl=en"); - IHtmlDocument videoEmbedPageHtml = new HtmlParser().Parse(response); + IHtmlDocument videoEmbedPageHtml = new HtmlParser().ParseDocument(response); string playerConfigRaw = Regex.Match(videoEmbedPageHtml.Source.Text, @"ytplayer\.config = (?\{[^\{\}]*(((?\{)[^\{\}]*)+((?\})[^\{\}]*)+)*(?(Open)(?!))\})") diff --git a/FoxTube/FoxTube.csproj b/FoxTube/FoxTube.csproj index 7145a64..fbb71a4 100644 --- a/FoxTube/FoxTube.csproj +++ b/FoxTube/FoxTube.csproj @@ -431,6 +431,9 @@ + + 0.12.1 + 1.30.0-beta02 @@ -450,7 +453,7 @@ 10.1811.22001 - 2.0.0 + 2.1.1 6.2.8 @@ -474,7 +477,7 @@ 4.3.0 - 4.7.0 + 4.7.6