Player: Fixing subrip subtitles

This commit is contained in:
Zoe Roux 2021-08-29 13:36:49 +02:00 committed by Diabltica
parent b00ce6e585
commit cdf1d103db
2 changed files with 2 additions and 2 deletions

@ -1 +1 @@
Subproject commit dca10903ff54a8999732695b5c2a0a5c94f85200 Subproject commit 865b82ec43f37b8afc173259b66566d8ad4c18de

View File

@ -51,7 +51,7 @@ namespace Kyoo.Api
{ {
string extension = null; string extension = null;
if (slug.Count(x => x == '.') == 2) if (slug.Count(x => x == '.') == 3)
{ {
int idx = slug.LastIndexOf('.'); int idx = slug.LastIndexOf('.');
extension = slug[(idx + 1)..]; extension = slug[(idx + 1)..];