2019-02-21 01:57:43 -08:00
|
|
|
using MediaBrowser.Model.Plugins;
|
2019-03-10 08:53:30 +09:00
|
|
|
|
2022-04-29 23:52:50 -05:00
|
|
|
namespace ConfusedPolarBear.Plugin.IntroSkipper.Configuration;
|
2021-12-13 16:58:05 -07:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Plugin configuration.
|
|
|
|
/// </summary>
|
|
|
|
public class PluginConfiguration : BasePluginConfiguration
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Initializes a new instance of the <see cref="PluginConfiguration"/> class.
|
|
|
|
/// </summary>
|
|
|
|
public PluginConfiguration()
|
2019-02-21 01:57:43 -08:00
|
|
|
{
|
|
|
|
}
|
2021-12-13 16:58:05 -07:00
|
|
|
|
|
|
|
/// <summary>
|
2022-06-09 14:07:40 -05:00
|
|
|
/// Gets or sets a value indicating whether the episode's fingerprint should be cached to the filesystem.
|
2021-12-13 16:58:05 -07:00
|
|
|
/// </summary>
|
2022-06-07 21:36:20 -05:00
|
|
|
public bool CacheFingerprints { get; set; } = true;
|
2022-05-05 18:26:02 -05:00
|
|
|
|
2022-06-09 20:34:18 -05:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the max degree of parallelism used when analyzing episodes.
|
|
|
|
/// </summary>
|
|
|
|
public int MaxParallelism { get; set; } = 2;
|
|
|
|
|
2022-06-07 18:33:59 -05:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets a value indicating whether introductions should be automatically skipped.
|
|
|
|
/// </summary>
|
|
|
|
public bool AutoSkip { get; set; }
|
|
|
|
|
2022-05-05 18:26:02 -05:00
|
|
|
/// <summary>
|
2022-05-09 22:50:41 -05:00
|
|
|
/// Gets or sets the seconds before the intro starts to show the skip prompt at.
|
2022-05-05 18:26:02 -05:00
|
|
|
/// </summary>
|
|
|
|
public int ShowPromptAdjustment { get; set; } = 5;
|
|
|
|
|
|
|
|
/// <summary>
|
2022-05-09 22:50:41 -05:00
|
|
|
/// Gets or sets the seconds after the intro starts to hide the skip prompt at.
|
2022-05-05 18:26:02 -05:00
|
|
|
/// </summary>
|
|
|
|
public int HidePromptAdjustment { get; set; } = 10;
|
2019-03-10 08:53:30 +09:00
|
|
|
}
|