From 07600766cf969c40a22731d66bd251047da285a6 Mon Sep 17 00:00:00 2001
From: CodeDevMLH <145071728+CodeDevMLH@users.noreply.github.com>
Date: Thu, 19 Feb 2026 18:31:10 +0100
Subject: [PATCH] Add legacy tag removal functionality to ScriptInjector
---
Injector_new.cs | 207 ++++++++++++++++++++
Jellyfin.Plugin.Seasonals/ScriptInjector.cs | 41 ++++
2 files changed, 248 insertions(+)
create mode 100644 Injector_new.cs
diff --git a/Injector_new.cs b/Injector_new.cs
new file mode 100644
index 0000000..db0305f
--- /dev/null
+++ b/Injector_new.cs
@@ -0,0 +1,207 @@
+using System;
+using System.IO;
+using System.Reflection;
+using System.Runtime.Loader;
+using Microsoft.Extensions.Logging;
+using Newtonsoft.Json.Linq;
+using MediaBrowser.Common.Configuration;
+using Jellyfin.Plugin.Seasonals.Helpers;
+using System.Collections.Generic;
+using System.Linq;
+
+namespace Jellyfin.Plugin.Seasonals;
+
+///
+/// Handles the injection of the Seasonals script into the Jellyfin web interface.
+///
+public class ScriptInjector
+{
+ private readonly IApplicationPaths _appPaths;
+ private readonly ILogger _logger;
+ public const string ScriptTag = "";
+ public const string Marker = "