Rename AmountOfIntroToPlay

This commit is contained in:
ConfusedPolarBear 2022-09-01 22:37:03 -05:00
parent fb6fe20f9b
commit 98684fadab
3 changed files with 3 additions and 4 deletions

View File

@ -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,

View File

@ -92,7 +92,6 @@ public class PluginConfiguration : BasePluginConfiguration
/// <summary>
/// Gets or sets the amount of intro to play (in seconds).
/// TODO: rename.
/// </summary>
public int AmountOfIntroToPlay { get; set; } = 2;
public int SecondsOfIntroToPlay { get; set; } = 2;
}

View File

@ -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;
}