mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
only check for mono-locale-extras in case of mono
This commit is contained in:
@@ -163,14 +163,9 @@ 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);
|
||||||
}
|
|
||||||
}
|
|
||||||
catch (Exception e)
|
|
||||||
{
|
|
||||||
logger.Error("Error while getting environment details: " + e);
|
|
||||||
}
|
|
||||||
|
|
||||||
try {
|
try
|
||||||
|
{
|
||||||
Encoding.GetEncoding("windows-1255");
|
Encoding.GetEncoding("windows-1255");
|
||||||
}
|
}
|
||||||
catch (NotSupportedException e)
|
catch (NotSupportedException e)
|
||||||
@@ -179,6 +174,12 @@ namespace Jackett.Services
|
|||||||
logger.Error(e.Message + " Most likely the mono-locale-extras package is not installed.");
|
logger.Error(e.Message + " Most likely the mono-locale-extras package is not installed.");
|
||||||
Environment.Exit(2);
|
Environment.Exit(2);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
logger.Error("Error while getting environment details: " + e);
|
||||||
|
}
|
||||||
|
|
||||||
CultureInfo.DefaultThreadCurrentCulture = new CultureInfo("en-US");
|
CultureInfo.DefaultThreadCurrentCulture = new CultureInfo("en-US");
|
||||||
// Load indexers
|
// Load indexers
|
||||||
|
Reference in New Issue
Block a user