Replace on-disk index.html patching with IStartupFilter request-time injection

This commit is contained in:
2026-09-17 16:08:24 +02:00
parent e44aafae70
commit e2c286e42c
3 changed files with 126 additions and 93 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ namespace JellyfinPlugin
public void RegisterServices(IServiceCollection serviceCollection, MediaBrowser.Controller.IServerApplicationHost applicationHost)
{
// Rejestracja serwisów tła
serviceCollection.AddHostedService<HtmlPatcher>();
serviceCollection.AddSingleton<Microsoft.AspNetCore.Hosting.IStartupFilter, ScriptInjectionStartupFilter>();
serviceCollection.AddHostedService<WrapperGenerator>();
serviceCollection.AddHostedService<LibraryMonitor>();