mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-09-21 12:19:47 +00:00
extracted an installation manager interface
This commit is contained in:
parent
4c725e69a8
commit
bf9e24502c
14 changed files with 189 additions and 95 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue