From bd2efa531a32ca5676507569026376c9c7cac7e3 Mon Sep 17 00:00:00 2001 From: Kayra Uylar <52961639+kuylar@users.noreply.github.com> Date: Mon, 12 Aug 2024 09:06:19 +0300 Subject: [PATCH] Fix LTPlayer loading (#162) * Fix LTPlayer URLs * Fix comments in mobile layout for widths 700px-1080px --- LightTube/JsCache.cs | 4 ++-- LightTube/Views/Youtube/Watch.cshtml | 8 ++++---- LightTube/wwwroot/css/lighttube.css | 8 ++++++++ 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/LightTube/JsCache.cs b/LightTube/JsCache.cs index 32241cd..6a88636 100644 --- a/LightTube/JsCache.cs +++ b/LightTube/JsCache.cs @@ -8,8 +8,8 @@ public static class JsCache private static Dictionary LibraryUrls = new() { ["hls.js"] = new Uri("https://cdn.jsdelivr.net/npm/hls.js@1.4.0/dist/hls.min.js"), - ["ltplayer.js"] = new Uri("https://raw.githubusercontent.com/lighttube-org/LTPlayer/fix/few-fixes/dist/player.min.js"), - ["ltplayer.css"] = new Uri("https://raw.githubusercontent.com/lighttube-org/LTPlayer/fix/few-fixes/dist/player.min.css"), + ["ltplayer.js"] = new Uri("https://raw.githubusercontent.com/lighttube-org/LTPlayer/master/dist/player.min.js"), + ["ltplayer.css"] = new Uri("https://raw.githubusercontent.com/lighttube-org/LTPlayer/master/dist/player.min.css"), }; private static Dictionary Hashes = []; public static DateTimeOffset CacheUpdateTime = DateTimeOffset.MinValue; diff --git a/LightTube/Views/Youtube/Watch.cshtml b/LightTube/Views/Youtube/Watch.cshtml index bad221b..3509faa 100644 --- a/LightTube/Views/Youtube/Watch.cshtml +++ b/LightTube/Views/Youtube/Watch.cshtml @@ -46,7 +46,7 @@ @if (Model.Comments is not null) { -
+