aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/System
diff options
context:
space:
mode:
authorCody Robibero <cody@robibe.ro>2024-02-28 17:09:23 -0700
committerGitHub <noreply@github.com>2024-02-28 17:09:23 -0700
commitf3c333f4d5bb272b5ffcff29af337ca31e8c374b (patch)
tree008525e157be39a25e013fd3b039d4680760eb68 /MediaBrowser.Model/System
parent54eb81395ef8d3d4cb064b56361ce94fc72b38b5 (diff)
parent4f0f364ac941dc4a856512c9bf0e6b93fdf7b3ab (diff)
Merge branch 'master' into bhowe34/fix-replace-missing-metadata-for-music
Diffstat (limited to 'MediaBrowser.Model/System')
-rw-r--r--MediaBrowser.Model/System/SystemInfo.cs29
1 files changed, 8 insertions, 21 deletions
diff --git a/MediaBrowser.Model/System/SystemInfo.cs b/MediaBrowser.Model/System/SystemInfo.cs
index aa7c03ebd..f37ac6a14 100644
--- a/MediaBrowser.Model/System/SystemInfo.cs
+++ b/MediaBrowser.Model/System/SystemInfo.cs
@@ -3,30 +3,12 @@
using System;
using System.Collections.Generic;
-using System.Runtime.InteropServices;
+using System.ComponentModel;
using MediaBrowser.Model.Updates;
namespace MediaBrowser.Model.System
{
/// <summary>
- /// 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
@@ -83,9 +65,11 @@ namespace MediaBrowser.Model.System
/// </summary>
/// <value><c>true</c>.</value>
[Obsolete("This is always true")]
+ [DefaultValue(true)]
public bool CanSelfRestart { get; set; } = true;
[Obsolete("This is always false")]
+ [DefaultValue(false)]
public bool CanLaunchWebBrowser { get; set; } = false;
/// <summary>
@@ -140,12 +124,15 @@ namespace MediaBrowser.Model.System
/// </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")]
+ [DefaultValue(false)]
public bool HasUpdateAvailable { get; set; }
[Obsolete("This isn't set correctly anymore")]
- public FFmpegLocation EncoderLocation { get; set; }
+ [DefaultValue("System")]
+ public string EncoderLocation { get; set; } = "System";
[Obsolete("This is no longer set")]
- public Architecture SystemArchitecture { get; set; } = Architecture.X64;
+ [DefaultValue("X64")]
+ public string SystemArchitecture { get; set; } = "X64";
}
}