The Free Software Media System - Server Backend & API
Remove unnecessary properties from SystemInfo response object
Mark Monteiro57b5ec1d514a
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.csindex 9655d9f5ee..edfed67a18 100644--- a/Emby.Server.Implementations/ApplicationHost.cs+++ b/Emby.Server.Implementations/ApplicationHost.cs@@ -94,7 +94,6 @@ using MediaBrowser.Model.Serialization;using MediaBrowser.Model.Services;using MediaBrowser.Model.System;using MediaBrowser.Model.Tasks;-using MediaBrowser.Model.Updates;using MediaBrowser.Providers.Chapters;using MediaBrowser.Providers.Manager;using MediaBrowser.Providers.Plugins.TheTvdb;@@ -1143,9 +1142,6 @@ namespace Emby.Server.ImplementationsItemsByNamePath = ApplicationPaths.InternalMetadataPath,InternalMetadataPath = ApplicationPaths.InternalMetadataPath,CachePath = ApplicationPaths.CachePath,- HttpServerPortNumber = HttpPort,- SupportsHttps = ListenWithHttps || ServerConfigurationManager.Configuration.IsBehindProxy,- HttpsPortNumber = HttpsPort,OperatingSystem = OperatingSystem.Id.ToString(),OperatingSystemDisplayName = OperatingSystem.Name,CanSelfRestart = CanSelfRestart,diff --git a/Jellyfin.Server/Program.cs b/Jellyfin.Server/Program.csindex 7aa238efac..1c586ffdd6 100644--- a/Jellyfin.Server/Program.cs+++ b/Jellyfin.Server/Program.cs@@ -10,14 +10,11 @@ using System.Text.RegularExpressions;using System.Threading;using System.Threading.Tasks;using CommandLine;-using Emby.Drawing;using Emby.Server.Implementations;using Emby.Server.Implementations.HttpServer;using Emby.Server.Implementations.IO;using Emby.Server.Implementations.Networking;-using Jellyfin.Drawing.Skia;using MediaBrowser.Common.Configuration;-using MediaBrowser.Controller.Drawing;using MediaBrowser.Controller.Extensions;using MediaBrowser.WebDashboard.Api;using Microsoft.AspNetCore.Hosting;diff --git a/MediaBrowser.Model/Configuration/ServerConfiguration.cs b/MediaBrowser.Model/Configuration/ServerConfiguration.csindex 6ee6a1f932..e4cd6c34ad 100644--- a/MediaBrowser.Model/Configuration/ServerConfiguration.cs+++ b/MediaBrowser.Model/Configuration/ServerConfiguration.cs@@ -234,11 +234,6 @@ namespace MediaBrowser.Model.Configuration/// </summary>public bool RequireHttps { get; set; }- /// <summary>- /// Gets or sets a value indicating whether the server is behind a reverse proxy.- /// </summary>- public bool IsBehindProxy { get; set; }-public bool EnableNewOmdbSupport { get; set; }public string[] RemoteIPFilter { get; set; }diff --git a/MediaBrowser.Model/System/SystemInfo.cs b/MediaBrowser.Model/System/SystemInfo.csindex 9753f4e06d..f2c5aa1e39 100644--- a/MediaBrowser.Model/System/SystemInfo.cs+++ b/MediaBrowser.Model/System/SystemInfo.cs@@ -115,24 +115,6 @@ namespace MediaBrowser.Model.System/// <value>The transcode path.</value>public string TranscodingTempPath { get; set; }- /// <summary>- /// Gets or sets the HTTP server port number.- /// </summary>- /// <value>The HTTP server port number.</value>- public int HttpServerPortNumber { get; set; }-- /// <summary>- /// Gets or sets a value indicating whether a client can connect to the server over HTTPS, either directly or- /// via a reverse proxy.- /// </summary>- public bool SupportsHttps { get; set; }-- /// <summary>- /// Gets or sets the HTTPS server port number.- /// </summary>- /// <value>The HTTPS server port number.</value>- public int HttpsPortNumber { get; set; }-/// <summary>/// Gets or sets a value indicating whether this instance has update available./// </summary>