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

This commit is contained in:
Cody Robibero 2025-10-25 09:32:15 -06:00 committed by GitHub
parent ac3fa3c376
commit 81b8b0ca4a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);