From 82a1e8a1789a7808cdd9aac98744265722acd9da Mon Sep 17 00:00:00 2001 From: CodeDevMLH <145071728+CodeDevMLH@users.noreply.github.com> Date: Thu, 19 Feb 2026 18:36:08 +0100 Subject: [PATCH] Refactor RemoveLegacyTags method to include modification tracking and update logging --- Jellyfin.Plugin.Seasonals/ScriptInjector.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Jellyfin.Plugin.Seasonals/ScriptInjector.cs b/Jellyfin.Plugin.Seasonals/ScriptInjector.cs index f9f73a3..c0e02f7 100644 --- a/Jellyfin.Plugin.Seasonals/ScriptInjector.cs +++ b/Jellyfin.Plugin.Seasonals/ScriptInjector.cs @@ -129,7 +129,7 @@ public class ScriptInjector // MARK: Legacy Tags, remove in future versions // Remove legacy tags bool modified = false; - content = RemoveLegacyTags(content); + content = RemoveLegacyTags(content, ref modified); if (modified) { _logger.LogInformation("Removed legacy tags from index.html."); @@ -230,7 +230,7 @@ public class ScriptInjector // MARK: Legacy Tags, remove in future versions /// - /// Removes legacy script and css tags from the content. + /// Removes legacy script tags from the content. /// private string RemoveLegacyTags(string content, ref bool modified) { @@ -241,7 +241,6 @@ public class ScriptInjector { content = content.Replace(LegacyScriptTag + Environment.NewLine, "").Replace(LegacyScriptTag, ""); modified = true; - _logger.LogInformation("Legacy Seasonals script tag removed."); } return content; }