aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Core/Localization/TextLocalizer.cs
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2017-03-05 21:33:18 -0500
committerGitHub <noreply@github.com>2017-03-05 21:33:18 -0500
commit972aaba66eb65a46e7fe8ee1cdd8a64286a87b82 (patch)
tree36ebebd7c9fc2a1f515c3ed422f107d23d4cf6e1 /Emby.Server.Core/Localization/TextLocalizer.cs
parent881d44205883183d71b858e1631aa73eb840fc80 (diff)
parent9e74d834a7bbd236daab15ab6d98a0e6a301c150 (diff)
Merge pull request #2512 from MediaBrowser/dev
update legacy hdhomerun support
Diffstat (limited to 'Emby.Server.Core/Localization/TextLocalizer.cs')
-rw-r--r--Emby.Server.Core/Localization/TextLocalizer.cs10
1 files changed, 9 insertions, 1 deletions
diff --git a/Emby.Server.Core/Localization/TextLocalizer.cs b/Emby.Server.Core/Localization/TextLocalizer.cs
index 6690c6263..1e8ccbbfa 100644
--- a/Emby.Server.Core/Localization/TextLocalizer.cs
+++ b/Emby.Server.Core/Localization/TextLocalizer.cs
@@ -39,7 +39,15 @@ namespace Emby.Server.Core.Localization
}
}
- return text.Normalize(form);
+ try
+ {
+ return text.Normalize(form);
+ }
+ catch (ArgumentException)
+ {
+ // if it still fails, return the original text
+ return text;
+ }
}
private static string StripInvalidUnicodeCharacters(string str)