aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Core/Localization/TextLocalizer.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2017-03-05 21:32:56 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2017-03-05 21:32:56 -0500
commit9e74d834a7bbd236daab15ab6d98a0e6a301c150 (patch)
tree36ebebd7c9fc2a1f515c3ed422f107d23d4cf6e1 /Emby.Server.Core/Localization/TextLocalizer.cs
parent00fb4711623d5654dca9fd88e916e0c63d8772c9 (diff)
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)