瀏覽代碼

Add the transcode marker during startup instead of first transcode (#15194)

Cody Robibero 1 月之前
父節點
當前提交
81b8b0ca4a
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      Jellyfin.Server/Program.cs

+ 6 - 0
Jellyfin.Server/Program.cs

@@ -184,6 +184,12 @@ namespace Jellyfin.Server
                         .AddSingleton<IServiceCollection>(e))
                     .Build();
 
+                /*
+                 * Initialize the transcode path marker so we avoid starting Jellyfin in a broken state.
+                 * This should really be a part of IApplicationPaths but this path is configured differently.
+                 */
+                _ = appHost.ConfigurationManager.GetTranscodePath();
+
                 // Re-use the host service provider in the app host since ASP.NET doesn't allow a custom service collection.
                 appHost.ServiceProvider = _jellyfinHost.Services;
                 PrepareDatabaseProvider(appHost.ServiceProvider);