From 55c6415022ff14ab1d5c998c3579b4ece6687532 Mon Sep 17 00:00:00 2001 From: Kilian von Pflugk Date: Wed, 30 Oct 2024 21:14:26 +0100 Subject: [PATCH] parameter e hides outer local variable with the same name --- IntroSkipper/Controllers/SkipIntroController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IntroSkipper/Controllers/SkipIntroController.cs b/IntroSkipper/Controllers/SkipIntroController.cs index 03861e1..da4167d 100644 --- a/IntroSkipper/Controllers/SkipIntroController.cs +++ b/IntroSkipper/Controllers/SkipIntroController.cs @@ -89,7 +89,7 @@ public class SkipIntroController(MediaSegmentUpdateManager mediaSegmentUpdateMan var seasonId = rawItem is Episode e ? e.SeasonId : rawItem.Id; var episode = Plugin.Instance!.QueuedMediaItems .FirstOrDefault(kvp => kvp.Key == seasonId).Value - .FirstOrDefault(e => e.EpisodeId == rawItem.Id); + .FirstOrDefault(queuedEpisode => queuedEpisode.EpisodeId == rawItem.Id); if (episode is not null) {