diff options
| author | dkanada <dkanada@users.noreply.github.com> | 2020-01-19 00:18:55 +0900 |
|---|---|---|
| committer | dkanada <dkanada@users.noreply.github.com> | 2020-01-19 00:18:55 +0900 |
| commit | e700fc8a076769d8f2bc29dac232a2bf8faaa0cf (patch) | |
| tree | 05dc806b87222c0f6009e2367be6828bbdf4e147 /Emby.Naming/Subtitles/SubtitleParser.cs | |
| parent | 1e65cc469539da0f31aaa93251bf3e0ab2e30a1e (diff) | |
fix and remove a few more tests
Diffstat (limited to 'Emby.Naming/Subtitles/SubtitleParser.cs')
| -rw-r--r-- | Emby.Naming/Subtitles/SubtitleParser.cs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Emby.Naming/Subtitles/SubtitleParser.cs b/Emby.Naming/Subtitles/SubtitleParser.cs index 99680c622..b055b1a6c 100644 --- a/Emby.Naming/Subtitles/SubtitleParser.cs +++ b/Emby.Naming/Subtitles/SubtitleParser.cs @@ -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; |
