mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-02-17 10:02:29 +00:00
extracted an installation manager interface
This commit is contained in:
@@ -47,12 +47,6 @@ namespace MediaBrowser.Controller
|
||||
/// <value>The FFMPEG controller.</value>
|
||||
public FFMpegManager FFMpegManager { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the installation manager.
|
||||
/// </summary>
|
||||
/// <value>The installation manager.</value>
|
||||
public InstallationManager InstallationManager { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the file system manager.
|
||||
/// </summary>
|
||||
@@ -331,10 +325,12 @@ namespace MediaBrowser.Controller
|
||||
{
|
||||
var info = base.GetSystemInfo();
|
||||
|
||||
if (InstallationManager != null)
|
||||
var installationManager = ApplicationHost.Resolve<IInstallationManager>();
|
||||
|
||||
if (installationManager != null)
|
||||
{
|
||||
info.InProgressInstallations = InstallationManager.CurrentInstallations.Select(i => i.Item1).ToArray();
|
||||
info.CompletedInstallations = InstallationManager.CompletedInstallations.ToArray();
|
||||
info.InProgressInstallations = installationManager.CurrentInstallations.Select(i => i.Item1).ToArray();
|
||||
info.CompletedInstallations = installationManager.CompletedInstallations.ToArray();
|
||||
}
|
||||
|
||||
return info;
|
||||
|
||||
Reference in New Issue
Block a user