mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-25 03:24:47 +01:00
Clean up EnvironmentInfo
This commit is contained in:
@@ -57,7 +57,7 @@ namespace Jellyfin.Server
|
||||
|
||||
_logger.LogInformation("Jellyfin version: {Version}", version);
|
||||
|
||||
EnvironmentInfo environmentInfo = getEnvironmentInfo();
|
||||
EnvironmentInfo environmentInfo = new EnvironmentInfo(getOperatingSystem());
|
||||
ApplicationHost.LogEnvironmentInfo(_logger, appPaths, environmentInfo);
|
||||
|
||||
SQLitePCL.Batteries_V2.Init();
|
||||
@@ -220,13 +220,6 @@ namespace Jellyfin.Server
|
||||
return new NullImageEncoder();
|
||||
}
|
||||
|
||||
private static EnvironmentInfo getEnvironmentInfo()
|
||||
=> new EnvironmentInfo()
|
||||
{
|
||||
SystemArchitecture = RuntimeInformation.OSArchitecture,
|
||||
OperatingSystem = getOperatingSystem()
|
||||
};
|
||||
|
||||
private static MediaBrowser.Model.System.OperatingSystem getOperatingSystem() {
|
||||
switch (Environment.OSVersion.Platform)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user