@ -1,15 +1,13 @@
using MediaBrowser.Api ;
using MediaBrowser.Common ;
using MediaBrowser.Common.Configuration ;
using MediaBrowser.Common.Constants ;
using MediaBrowser.Common.Extensions ;
using MediaBrowser.Common.Implementations ;
using MediaBrowser.Common.Implementations.ScheduledTasks ;
using MediaBrowser.Common.IO ;
using MediaBrowser.Common.Implementations.Updates ;
using MediaBrowser.Common.IO ;
using MediaBrowser.Common.MediaInfo ;
using MediaBrowser.Common.Net ;
using MediaBrowser.Common.Updates ;
using MediaBrowser.Controller ;
using MediaBrowser.Controller.Configuration ;
using MediaBrowser.Controller.Drawing ;
@ -28,7 +26,6 @@ using MediaBrowser.IsoMounter;
using MediaBrowser.Model.IO ;
using MediaBrowser.Model.MediaInfo ;
using MediaBrowser.Model.System ;
using MediaBrowser.Model.Updates ;
using MediaBrowser.Providers ;
using MediaBrowser.Server.Implementations ;
using MediaBrowser.Server.Implementations.BdInfo ;
@ -51,7 +48,6 @@ using System.Diagnostics;
using System.IO ;
using System.Linq ;
using System.Reflection ;
using System.Threading ;
using System.Threading.Tasks ;
namespace MediaBrowser.ServerApplication
@ -458,21 +454,6 @@ namespace MediaBrowser.ServerApplication
get { return ConfigurationManager . CommonConfiguration . EnableAutoUpdate ; }
}
/// <summary>
/// Checks for update.
/// </summary>
/// <param name="cancellationToken">The cancellation token.</param>
/// <param name="progress">The progress.</param>
/// <returns>Task{CheckForUpdateResult}.</returns>
public async override Task < CheckForUpdateResult > CheckForApplicationUpdate ( CancellationToken cancellationToken , IProgress < double > progress )
{
var availablePackages = await PackageManager . GetAvailablePackagesWithoutRegistrationInfo ( CancellationToken . None ) . ConfigureAwait ( false ) ;
var version = InstallationManager . GetLatestCompatibleVersion ( availablePackages , Constants . MbServerPkgName , ConfigurationManager . CommonConfiguration . SystemUpdateLevel ) ;
return version ! = null ? new CheckForUpdateResult { AvailableVersion = version . version , IsUpdateAvailable = version . version > ApplicationVersion , Package = version } :
new CheckForUpdateResult { AvailableVersion = ApplicationVersion , IsUpdateAvailable = false } ;
}
/// <summary>
/// Gets the composable part assemblies.
/// </summary>