fix and remove a few more tests

This commit is contained in:
dkanada
2020-01-19 00:18:55 +09:00
parent 1e65cc4695
commit e700fc8a07
6 changed files with 21 additions and 35 deletions

View File

@@ -31,7 +31,6 @@ namespace Emby.Naming.Subtitles
}
var flags = GetFlags(path);
var info = new SubtitleInfo
{
Path = path,
@@ -45,7 +44,7 @@ namespace Emby.Naming.Subtitles
// Should have a name, language and file extension
if (parts.Count >= 3)
{
info.Language = parts[parts.Count - 2];
info.Language = parts[^2];
}
return info;