Fixing an issue with subtitle loading

This commit is contained in:
Zoe Roux 2020-08-07 18:38:41 +02:00
parent 65bfe2c4cd
commit db2fcdb83b
3 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -26,7 +26,7 @@ namespace Kyoo.Api
if(item == null)
return NotFound();
return new WatchItem(item);;
return new WatchItem(item);
}
[HttpGet("{movieSlug}")]

@ -1 +1 @@
Subproject commit b4fad6a28f88f2ffb873dab4b463481d59c80b97
Subproject commit ac4fbba17bc4257cae404497e74ff3ad857c2396