only check for mono-locale-extras in case of mono

This commit is contained in:
kaso17 2017-01-26 14:54:59 +01:00
parent 72e5baee58
commit dce295dcbd
1 changed files with 11 additions and 10 deletions

View File

@ -163,14 +163,9 @@ namespace Jackett.Services
if (displayName != null)
monoVersion = displayName.Invoke(null, null).ToString();
logger.Info("mono version: " + monoVersion);
}
}
catch (Exception e)
{
logger.Error("Error while getting environment details: " + e);
}
try {
try
{
Encoding.GetEncoding("windows-1255");
}
catch (NotSupportedException e)
@ -179,6 +174,12 @@ namespace Jackett.Services
logger.Error(e.Message + " Most likely the mono-locale-extras package is not installed.");
Environment.Exit(2);
}
}
}
catch (Exception e)
{
logger.Error("Error while getting environment details: " + e);
}
CultureInfo.DefaultThreadCurrentCulture = new CultureInfo("en-US");
// Load indexers