diff --git a/IntroSkipper/Controllers/SkipIntroController.cs b/IntroSkipper/Controllers/SkipIntroController.cs
index e188193..03861e1 100644
--- a/IntroSkipper/Controllers/SkipIntroController.cs
+++ b/IntroSkipper/Controllers/SkipIntroController.cs
@@ -26,8 +26,6 @@ namespace IntroSkipper.Controllers;
[Produces(MediaTypeNames.Application.Json)]
public class SkipIntroController(MediaSegmentUpdateManager mediaSegmentUpdateManager) : ControllerBase
{
- private readonly MediaSegmentUpdateManager _mediaSegmentUpdateManager = mediaSegmentUpdateManager;
-
///
/// Returns the timestamps of the introduction in a television episode. Responses are in API version 1 format.
///
@@ -96,7 +94,7 @@ public class SkipIntroController(MediaSegmentUpdateManager mediaSegmentUpdateMan
if (episode is not null)
{
using var ct = new CancellationTokenSource();
- await _mediaSegmentUpdateManager.UpdateMediaSegmentsAsync([episode], ct.Token).ConfigureAwait(false);
+ await mediaSegmentUpdateManager.UpdateMediaSegmentsAsync([episode], ct.Token).ConfigureAwait(false);
}
}
diff --git a/IntroSkipper/Controllers/VisualizationController.cs b/IntroSkipper/Controllers/VisualizationController.cs
index 17262af..88285d0 100644
--- a/IntroSkipper/Controllers/VisualizationController.cs
+++ b/IntroSkipper/Controllers/VisualizationController.cs
@@ -31,9 +31,6 @@ namespace IntroSkipper.Controllers;
[Route("Intros")]
public class VisualizationController(ILogger logger, MediaSegmentUpdateManager mediaSegmentUpdateManager) : ControllerBase
{
- private readonly ILogger _logger = logger;
- private readonly MediaSegmentUpdateManager _mediaSegmentUpdateManager = mediaSegmentUpdateManager;
-
///
/// Returns all show names and seasons.
///
@@ -41,7 +38,7 @@ public class VisualizationController(ILogger logger, Me
[HttpGet("Shows")]
public ActionResult> GetShowSeasons()
{
- _logger.LogDebug("Returning season IDs by series name");
+ logger.LogDebug("Returning season IDs by series name");
var showSeasons = new Dictionary();
@@ -197,7 +194,7 @@ public class VisualizationController(ILogger logger, Me
return NotFound();
}
- _logger.LogInformation("Erasing timestamps for series {SeriesId} season {SeasonId} at user request", seriesId, seasonId);
+ logger.LogInformation("Erasing timestamps for series {SeriesId} season {SeasonId} at user request", seriesId, seasonId);
foreach (var e in episodes)
{
@@ -215,7 +212,7 @@ public class VisualizationController(ILogger logger, Me
if (Plugin.Instance.Configuration.UpdateMediaSegments)
{
using var ct = new CancellationTokenSource();
- await _mediaSegmentUpdateManager.UpdateMediaSegmentsAsync(episodes, ct.Token).ConfigureAwait(false);
+ await mediaSegmentUpdateManager.UpdateMediaSegmentsAsync(episodes, ct.Token).ConfigureAwait(false);
}
return NoContent();