mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-07-09 03:04:20 -04:00
Fixing an issue with subtitle loading
This commit is contained in:
parent
65bfe2c4cd
commit
db2fcdb83b
@ -337,7 +337,7 @@ namespace Kyoo.Controllers
|
|||||||
|| subName?.Contains(episodeLink) == false
|
|| subName?.Contains(episodeLink) == false
|
||||||
|| subName.Length < episodeLink.Length + 5)
|
|| subName.Length < episodeLink.Length + 5)
|
||||||
continue;
|
continue;
|
||||||
string language = subName.Substring(episodeLink.Length + 2, 3);
|
string language = subName.Substring(episodeLink.Length + 1, 3);
|
||||||
bool isDefault = sub.Contains("default");
|
bool isDefault = sub.Contains("default");
|
||||||
bool isForced = sub.Contains("forced");
|
bool isForced = sub.Contains("forced");
|
||||||
Track track = new Track(StreamType.Subtitle, null, language, isDefault, isForced, null, false, sub)
|
Track track = new Track(StreamType.Subtitle, null, language, isDefault, isForced, null, false, sub)
|
||||||
|
@ -26,7 +26,7 @@ namespace Kyoo.Api
|
|||||||
if(item == null)
|
if(item == null)
|
||||||
return NotFound();
|
return NotFound();
|
||||||
|
|
||||||
return new WatchItem(item);;
|
return new WatchItem(item);
|
||||||
}
|
}
|
||||||
|
|
||||||
[HttpGet("{movieSlug}")]
|
[HttpGet("{movieSlug}")]
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit b4fad6a28f88f2ffb873dab4b463481d59c80b97
|
Subproject commit ac4fbba17bc4257cae404497e74ff3ad857c2396
|
Loading…
x
Reference in New Issue
Block a user