mirror of
https://github.com/Jackett/Jackett
synced 2025-02-25 07:32:38 +00:00
only check for mono-locale-extras in case of mono
This commit is contained in:
parent
72e5baee58
commit
dce295dcbd
1 changed files with 11 additions and 10 deletions
|
@ -163,6 +163,17 @@ namespace Jackett.Services
|
||||||
if (displayName != null)
|
if (displayName != null)
|
||||||
monoVersion = displayName.Invoke(null, null).ToString();
|
monoVersion = displayName.Invoke(null, null).ToString();
|
||||||
logger.Info("mono version: " + monoVersion);
|
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)
|
catch (Exception e)
|
||||||
|
@ -170,16 +181,6 @@ namespace Jackett.Services
|
||||||
logger.Error("Error while getting environment details: " + e);
|
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");
|
CultureInfo.DefaultThreadCurrentCulture = new CultureInfo("en-US");
|
||||||
// Load indexers
|
// Load indexers
|
||||||
indexerService.InitIndexers();
|
indexerService.InitIndexers();
|
||||||
|
|
Loading…
Reference in a new issue