From db2fcdb83b2874f2b6debe75bf95d646504b3bda Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Fri, 7 Aug 2020 18:38:41 +0200 Subject: [PATCH] Fixing an issue with subtitle loading --- Kyoo/Tasks/Crawler.cs | 2 +- Kyoo/Views/API/WatchAPI.cs | 2 +- Kyoo/Views/WebClient | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Kyoo/Tasks/Crawler.cs b/Kyoo/Tasks/Crawler.cs index 387bd3af..e0914257 100644 --- a/Kyoo/Tasks/Crawler.cs +++ b/Kyoo/Tasks/Crawler.cs @@ -337,7 +337,7 @@ namespace Kyoo.Controllers || subName?.Contains(episodeLink) == false || subName.Length < episodeLink.Length + 5) continue; - string language = subName.Substring(episodeLink.Length + 2, 3); + string language = subName.Substring(episodeLink.Length + 1, 3); bool isDefault = sub.Contains("default"); bool isForced = sub.Contains("forced"); Track track = new Track(StreamType.Subtitle, null, language, isDefault, isForced, null, false, sub) diff --git a/Kyoo/Views/API/WatchAPI.cs b/Kyoo/Views/API/WatchAPI.cs index 07039073..5166fac5 100644 --- a/Kyoo/Views/API/WatchAPI.cs +++ b/Kyoo/Views/API/WatchAPI.cs @@ -26,7 +26,7 @@ namespace Kyoo.Api if(item == null) return NotFound(); - return new WatchItem(item);; + return new WatchItem(item); } [HttpGet("{movieSlug}")] diff --git a/Kyoo/Views/WebClient b/Kyoo/Views/WebClient index b4fad6a2..ac4fbba1 160000 --- a/Kyoo/Views/WebClient +++ b/Kyoo/Views/WebClient @@ -1 +1 @@ -Subproject commit b4fad6a28f88f2ffb873dab4b463481d59c80b97 +Subproject commit ac4fbba17bc4257cae404497e74ff3ad857c2396