diff options
| author | Luke <luke.pulverenti@gmail.com> | 2017-11-01 15:56:42 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-11-01 15:56:42 -0400 |
| commit | 5e879484e9f4604679af59633019b9ddf7a8903e (patch) | |
| tree | a6427b153fa6be62e05bda521e912b512949e1e8 /MediaBrowser.ServerApplication/MainStartup.cs | |
| parent | 5d4c58ffc4631401660cd0418194fbe10e78ce4c (diff) | |
| parent | d765f370b35bdc8c74a6b74a82796efcea97f762 (diff) | |
Merge pull request #2994 from MediaBrowser/dev
Dev
Diffstat (limited to 'MediaBrowser.ServerApplication/MainStartup.cs')
| -rw-r--r-- | MediaBrowser.ServerApplication/MainStartup.cs | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/MediaBrowser.ServerApplication/MainStartup.cs b/MediaBrowser.ServerApplication/MainStartup.cs index 70b03aa44..91a949921 100644 --- a/MediaBrowser.ServerApplication/MainStartup.cs +++ b/MediaBrowser.ServerApplication/MainStartup.cs @@ -304,6 +304,19 @@ namespace MediaBrowser.ServerApplication } } + private static string UpdatePackageFileName + { + get + { + if (Environment.Is64BitOperatingSystem) + { + return "embyserver-win-x64-{version}.zip"; + } + + return "embyserver-win-x86-{version}.zip"; + } + } + /// <summary> /// Runs the application. /// </summary> @@ -324,7 +337,7 @@ namespace MediaBrowser.ServerApplication options, fileSystem, new PowerManagement(), - "emby.windows.zip", + UpdatePackageFileName, environmentInfo, new NullImageEncoder(), new SystemEvents(logManager.GetLogger("SystemEvents")), @@ -355,7 +368,7 @@ namespace MediaBrowser.ServerApplication } // set image encoder here - appHost.ImageProcessor.ImageEncoder = ImageEncoderHelper.GetImageEncoder(_logger, logManager, fileSystem, options, () => appHost.HttpClient, appPaths); + appHost.ImageProcessor.ImageEncoder = ImageEncoderHelper.GetImageEncoder(_logger, logManager, fileSystem, options, () => appHost.HttpClient, appPaths, appHost.LocalizationManager); task = task.ContinueWith(new Action<Task>(a => appHost.RunStartupTasks()), TaskContinuationOptions.OnlyOnRanToCompletion | TaskContinuationOptions.AttachedToParent); |
