diff --git a/src/Jackett/Services/ServerService.cs b/src/Jackett/Services/ServerService.cs index 1a09c5a21..999b2f5fa 100644 --- a/src/Jackett/Services/ServerService.cs +++ b/src/Jackett/Services/ServerService.cs @@ -163,6 +163,17 @@ namespace Jackett.Services if (displayName != null) monoVersion = displayName.Invoke(null, null).ToString(); logger.Info("mono version: " + monoVersion); + + try + { + Encoding.GetEncoding("windows-1255"); + } + catch (NotSupportedException e) + { + logger.Debug(e); + logger.Error(e.Message + " Most likely the mono-locale-extras package is not installed."); + Environment.Exit(2); + } } } catch (Exception e) @@ -170,16 +181,6 @@ namespace Jackett.Services logger.Error("Error while getting environment details: " + e); } - try { - Encoding.GetEncoding("windows-1255"); - } - catch (NotSupportedException e) - { - logger.Debug(e); - logger.Error(e.Message + " Most likely the mono-locale-extras package is not installed."); - Environment.Exit(2); - } - CultureInfo.DefaultThreadCurrentCulture = new CultureInfo("en-US"); // Load indexers indexerService.InitIndexers();