The Free Software Media System - Server Backend & API
dispose image magick environment on shutdown
Luke Pulverentia0c6c259e691
diff --git a/MediaBrowser.Model/Configuration/ServerConfiguration.cs b/MediaBrowser.Model/Configuration/ServerConfiguration.csindex a28d3bd5db..bb57e9d471 100644--- a/MediaBrowser.Model/Configuration/ServerConfiguration.cs+++ b/MediaBrowser.Model/Configuration/ServerConfiguration.cs@@ -203,8 +203,6 @@ namespace MediaBrowser.Model.Configurationpublic bool EnableAudioArchiveFiles { get; set; }public bool EnableVideoArchiveFiles { get; set; }- public bool EnableLegacyCollectionInView { get; set; }-/// <summary>/// Initializes a new instance of the <see cref="ServerConfiguration" /> class./// </summary>diff --git a/MediaBrowser.Server.Implementations/Drawing/ImageProcessor.cs b/MediaBrowser.Server.Implementations/Drawing/ImageProcessor.csindex e942b183bc..85eadd73cf 100644--- a/MediaBrowser.Server.Implementations/Drawing/ImageProcessor.cs+++ b/MediaBrowser.Server.Implementations/Drawing/ImageProcessor.cs@@ -822,6 +822,7 @@ namespace MediaBrowser.Server.Implementations.Drawingpublic void Dispose(){+ Wand.CloseEnvironment();_saveImageSizeTimer.Dispose();}}diff --git a/MediaBrowser.Server.Implementations/Library/UserViewManager.cs b/MediaBrowser.Server.Implementations/Library/UserViewManager.csindex 71a3609001..8b7cfa9f2f 100644--- a/MediaBrowser.Server.Implementations/Library/UserViewManager.cs+++ b/MediaBrowser.Server.Implementations/Library/UserViewManager.cs@@ -85,8 +85,7 @@ namespace MediaBrowser.Server.Implementations.Librarylist.Add(await GetUserView(CollectionType.Movies, string.Empty, cancellationToken).ConfigureAwait(false));}- if (foldersWithViewTypes.Any(i => string.Equals(i.CollectionType, CollectionType.Games, StringComparison.OrdinalIgnoreCase))- || _config.Configuration.EnableLegacyCollectionInView)+ if (foldersWithViewTypes.Any(i => string.Equals(i.CollectionType, CollectionType.Games, StringComparison.OrdinalIgnoreCase))){list.Add(await GetUserView(CollectionType.Games, string.Empty, cancellationToken).ConfigureAwait(false));}diff --git a/MediaBrowser.Server.Implementations/Localization/JavaScript/javascript.json b/MediaBrowser.Server.Implementations/Localization/JavaScript/javascript.jsonindex 09045be9bd..691e17d781 100644--- a/MediaBrowser.Server.Implementations/Localization/JavaScript/javascript.json+++ b/MediaBrowser.Server.Implementations/Localization/JavaScript/javascript.json@@ -69,7 +69,7 @@"ButtonAddToCollection": "Add to collection","HeaderSelectCertificatePath": "Select Certificate Path","ConfirmMessageScheduledTaskButton": "This operation normally runs automatically as a scheduled task. It can also be run manually here. To configure the scheduled task, see:",- "HeaderSupporterBenefit": "A supporter membership provides additional benefits such as access to premium plugins, internet channel content, and more. {0}Learn more{1}.",+ "HeaderSupporterBenefit": "A supporter membership provides additional benefits such as access to sync, premium plugins, internet channel content, and more. {0}Learn more{1}.","LabelSyncNoTargetsHelp": "It looks like you don't currently have any apps that support sync.","HeaderWelcomeToMediaBrowserServerDashboard": "Welcome to the Media Browser Dashboard","HeaderWelcomeToMediaBrowserWebClient": "Welcome to the Media Browser Web Client",diff --git a/MediaBrowser.ServerApplication/MainStartup.cs b/MediaBrowser.ServerApplication/MainStartup.csindex bc3bef1a0e..4bf51bc6b1 100644--- a/MediaBrowser.ServerApplication/MainStartup.cs+++ b/MediaBrowser.ServerApplication/MainStartup.cs@@ -1,4 +1,5 @@-using MediaBrowser.Common.Implementations.Logging;+using ImageMagickSharp;+using MediaBrowser.Common.Implementations.Logging;using MediaBrowser.Model.Logging;using MediaBrowser.Server.Implementations;using MediaBrowser.Server.Startup.Common;@@ -40,7 +41,7 @@ namespace MediaBrowser.ServerApplicationvar applicationPath = currentProcess.MainModule.FileName;- ImageMagickSharp.Wand.SetMagickCoderModulePath(Path.Combine(Path.GetDirectoryName(applicationPath), "ImageMagickCoders", "x86"));+ Wand.SetMagickCoderModulePath(Path.Combine(Path.GetDirectoryName(applicationPath), "ImageMagickCoders", "x86"));var appPaths = CreateApplicationPaths(applicationPath, _isRunningAsService);var logManager = new NlogManager(appPaths.LogDirectoryPath, "server");