From 98684fadab818ed89f6f8ffa13996eccb1fe481e Mon Sep 17 00:00:00 2001 From: ConfusedPolarBear <33811686+ConfusedPolarBear@users.noreply.github.com> Date: Thu, 1 Sep 2022 22:37:03 -0500 Subject: [PATCH] Rename AmountOfIntroToPlay --- ConfusedPolarBear.Plugin.IntroSkipper/AutoSkip.cs | 2 +- .../Configuration/PluginConfiguration.cs | 3 +-- .../Controllers/SkipIntroController.cs | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/AutoSkip.cs b/ConfusedPolarBear.Plugin.IntroSkipper/AutoSkip.cs index 1cac686..16f3f47 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/AutoSkip.cs +++ b/ConfusedPolarBear.Plugin.IntroSkipper/AutoSkip.cs @@ -169,7 +169,7 @@ public class AutoSkip : IServerEntryPoint // Send the seek command _logger.LogDebug("Sending seek command to {Session}", deviceId); - var introEnd = (long)intro.IntroEnd - Plugin.Instance!.Configuration.AmountOfIntroToPlay; + var introEnd = (long)intro.IntroEnd - Plugin.Instance!.Configuration.SecondsOfIntroToPlay; _sessionManager.SendPlaystateCommand( session.Id, diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/PluginConfiguration.cs b/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/PluginConfiguration.cs index d98554c..6311298 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/PluginConfiguration.cs +++ b/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/PluginConfiguration.cs @@ -92,7 +92,6 @@ public class PluginConfiguration : BasePluginConfiguration /// /// Gets or sets the amount of intro to play (in seconds). - /// TODO: rename. /// - public int AmountOfIntroToPlay { get; set; } = 2; + public int SecondsOfIntroToPlay { get; set; } = 2; } diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/Controllers/SkipIntroController.cs b/ConfusedPolarBear.Plugin.IntroSkipper/Controllers/SkipIntroController.cs index 4fcb8c6..5a47f15 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/Controllers/SkipIntroController.cs +++ b/ConfusedPolarBear.Plugin.IntroSkipper/Controllers/SkipIntroController.cs @@ -44,7 +44,7 @@ public class SkipIntroController : ControllerBase var config = Plugin.Instance!.Configuration; intro.ShowSkipPromptAt = Math.Max(0, intro.IntroStart - config.ShowPromptAdjustment); intro.HideSkipPromptAt = intro.IntroStart + config.HidePromptAdjustment; - intro.IntroEnd -= config.AmountOfIntroToPlay; + intro.IntroEnd -= config.SecondsOfIntroToPlay; return intro; }