diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/Plugin.cs b/ConfusedPolarBear.Plugin.IntroSkipper/Plugin.cs index 24ddaa5..5aad59a 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/Plugin.cs +++ b/ConfusedPolarBear.Plugin.IntroSkipper/Plugin.cs @@ -368,7 +368,6 @@ public class Plugin : BasePlugin, IHasWebPages _logger.LogDebug("Reading index.html from {Path}", indexPath); var contents = File.ReadAllText(indexPath); - _logger.LogDebug("Successfully read index.html"); var scriptTag = ""; @@ -381,12 +380,10 @@ public class Plugin : BasePlugin, IHasWebPages // Inject a link to the script at the end of the section. // A regex is used here to ensure the replacement is only done once. - _logger.LogDebug("Injecting script tag"); var headEnd = new Regex("", RegexOptions.IgnoreCase); contents = headEnd.Replace(contents, scriptTag + "", 1); // Write the modified file contents - _logger.LogDebug("Saving modified file"); File.WriteAllText(indexPath, contents); _logger.LogInformation("Skip intro button successfully added"); diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/QueueManager.cs b/ConfusedPolarBear.Plugin.IntroSkipper/QueueManager.cs index c27ff62..e57093e 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/QueueManager.cs +++ b/ConfusedPolarBear.Plugin.IntroSkipper/QueueManager.cs @@ -57,9 +57,7 @@ public class QueueManager continue; } - _logger.LogInformation( - "Running enqueue of items in library {Name}", - folder.Name); + _logger.LogInformation("Running enqueue of items in library {Name}", folder.Name); try { @@ -114,7 +112,7 @@ public class QueueManager if (config.AnalysisLengthLimit != 10 || config.AnalysisPercent != 25 || config.MinimumIntroDuration != 15) { _logger.LogInformation( - "Analysis settings have been changed to: {Percent}%/{Minutes}m and a minimum of {Minimum}s", + "Analysis settings have been changed to: {Percent}% / {Minutes}m and a minimum of {Minimum}s", config.AnalysisPercent, config.AnalysisLengthLimit, config.MinimumIntroDuration); @@ -140,8 +138,6 @@ public class QueueManager IsVirtualItem = false }; - _logger.LogDebug("Getting items"); - var items = _libraryManager.GetItemList(query, false); if (items is null)