Rename AmountOfIntroToPlay
This commit is contained in:
parent
fb6fe20f9b
commit
98684fadab
@ -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,
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user