diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-06-06 11:12:29 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-06-06 11:12:29 -0400 |
| commit | a93913b423d87b2dcbb8631cac99dd62eedcd5a0 (patch) | |
| tree | 1d98afa49a45124271e1a0c79f5dc6a274c47d4d | |
| parent | 290e1554c3c5572b077103c1bedf1d091f6477d4 (diff) | |
don't support two character language
| -rw-r--r-- | MediaBrowser.Controller/Providers/MediaInfo/FFProbeVideoInfoProvider.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MediaBrowser.Controller/Providers/MediaInfo/FFProbeVideoInfoProvider.cs b/MediaBrowser.Controller/Providers/MediaInfo/FFProbeVideoInfoProvider.cs index 91fd29b24..d4e5a30c6 100644 --- a/MediaBrowser.Controller/Providers/MediaInfo/FFProbeVideoInfoProvider.cs +++ b/MediaBrowser.Controller/Providers/MediaInfo/FFProbeVideoInfoProvider.cs @@ -280,9 +280,9 @@ namespace MediaBrowser.Controller.Providers.MediaInfo var language = fileNameWithoutExtension.Split('.').LastOrDefault(); // Try to translate to three character code - // Be flexible and check against all properties + // Be flexible and check against both the full and three character versions var culture = _localization.GetCultures() - .FirstOrDefault(i => string.Equals(i.DisplayName, language, StringComparison.OrdinalIgnoreCase) || string.Equals(i.Name, language, StringComparison.OrdinalIgnoreCase) || string.Equals(i.ThreeLetterISOLanguageName, language, StringComparison.OrdinalIgnoreCase) || string.Equals(i.TwoLetterISOLanguageName, language, StringComparison.OrdinalIgnoreCase)); + .FirstOrDefault(i => string.Equals(i.DisplayName, language, StringComparison.OrdinalIgnoreCase) || string.Equals(i.Name, language, StringComparison.OrdinalIgnoreCase) || string.Equals(i.ThreeLetterISOLanguageName, language, StringComparison.OrdinalIgnoreCase)); if (culture != null) { |
