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
+1 -1
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)
+1 -1
View File
@@ -26,7 +26,7 @@ namespace Kyoo.Api
if(item == null)
return NotFound();
return new WatchItem(item);;
return new WatchItem(item);
}
[HttpGet("{movieSlug}")]