diff options
Diffstat (limited to 'MediaBrowser.Model/System/SystemInfo.cs')
| -rw-r--r-- | MediaBrowser.Model/System/SystemInfo.cs | 78 |
1 files changed, 41 insertions, 37 deletions
diff --git a/MediaBrowser.Model/System/SystemInfo.cs b/MediaBrowser.Model/System/SystemInfo.cs index 581a1069c..a82c1c8c0 100644 --- a/MediaBrowser.Model/System/SystemInfo.cs +++ b/MediaBrowser.Model/System/SystemInfo.cs @@ -1,3 +1,6 @@ +#nullable disable +#pragma warning disable CS1591 + using System; using System.Runtime.InteropServices; using MediaBrowser.Model.Updates; @@ -5,11 +8,35 @@ using MediaBrowser.Model.Updates; namespace MediaBrowser.Model.System { /// <summary> - /// Class SystemInfo + /// Enum describing the location of the FFmpeg tool. + /// </summary> + public enum FFmpegLocation + { + /// <summary>No path to FFmpeg found.</summary> + NotFound, + + /// <summary>Path supplied via command line using switch --ffmpeg.</summary> + SetByArgument, + + /// <summary>User has supplied path via Transcoding UI page.</summary> + Custom, + + /// <summary>FFmpeg tool found on system $PATH.</summary> + System + } + + /// <summary> + /// Class SystemInfo. /// </summary> public class SystemInfo : PublicSystemInfo { - public PackageVersionClass SystemUpdateLevel { get; set; } + /// <summary> + /// Initializes a new instance of the <see cref="SystemInfo" /> class. + /// </summary> + public SystemInfo() + { + CompletedInstallations = Array.Empty<InstallationInfo>(); + } /// <summary> /// Gets or sets the display name of the operating system. @@ -18,12 +45,7 @@ namespace MediaBrowser.Model.System public string OperatingSystemDisplayName { get; set; } /// <summary> - /// The product name. This is the AssemblyProduct name. - /// </summary> - public string ProductName { get; set; } - - /// <summary> - /// Get or sets the package name. + /// Gets or sets the package name. /// </summary> /// <value>The value of the '-package' command line argument.</value> public string PackageName { get; set; } @@ -69,6 +91,12 @@ namespace MediaBrowser.Model.System public string ProgramDataPath { get; set; } /// <summary> + /// Gets or sets the web UI resources path. + /// </summary> + /// <value>The web UI resources path.</value> + public string WebPath { get; set; } + + /// <summary> /// Gets or sets the items by name path. /// </summary> /// <value>The items by name path.</value> @@ -93,45 +121,21 @@ namespace MediaBrowser.Model.System public string InternalMetadataPath { get; set; } /// <summary> - /// Gets or sets the transcoding temporary path. + /// Gets or sets the transcode path. /// </summary> - /// <value>The transcoding temporary path.</value> + /// <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 [enable HTTPS]. - /// </summary> - /// <value><c>true</c> if [enable HTTPS]; otherwise, <c>false</c>.</value> - 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> /// <value><c>true</c> if this instance has update available; otherwise, <c>false</c>.</value> + [Obsolete("This should be handled by the package manager")] public bool HasUpdateAvailable { get; set; } - public string EncoderLocationType { get; set; } + [Obsolete("This isn't set correctly anymore")] + public FFmpegLocation EncoderLocation { get; set; } public Architecture SystemArchitecture { get; set; } - - /// <summary> - /// Initializes a new instance of the <see cref="SystemInfo" /> class. - /// </summary> - public SystemInfo() - { - CompletedInstallations = Array.Empty<InstallationInfo>(); - } } } |
