jRay/Jellyfin.Plugin.JRay/Configuration/PluginConfiguration.cs
Duncan Tourolle a38122e993
All checks were successful
🏗️ Build Plugin / build (push) Successful in 1m13s
🧪 Test Plugin / test (push) Successful in 20s
Latest Release / latest-release (push) Successful in 25s
first commit
2026-06-12 18:16:47 +02:00

41 lines
1.3 KiB
C#

using MediaBrowser.Model.Plugins;
namespace Jellyfin.Plugin.JRay.Configuration;
/// <summary>
/// Plugin configuration.
/// </summary>
public class PluginConfiguration : BasePluginConfiguration
{
/// <summary>
/// Initializes a new instance of the <see cref="PluginConfiguration"/> class.
/// </summary>
public PluginConfiguration()
{
TruthFileSuffix = ".jray.json";
CacheDurationMinutes = 60;
EnableOverlay = true;
}
/// <summary>
/// Gets or sets the filename suffix used to find a scene-actor-extraction
/// "truth" file for a media item. The plugin looks for a file named
/// "&lt;media file basename&gt;&lt;TruthFileSuffix&gt;" next to the media file,
/// e.g. "Movie.mkv" -&gt; "Movie.jray.json".
/// </summary>
public string TruthFileSuffix { get; set; }
/// <summary>
/// Gets or sets how long (in minutes) a loaded truth file is cached in
/// memory before being re-read from disk.
/// </summary>
public int CacheDurationMinutes { get; set; }
/// <summary>
/// Gets or sets a value indicating whether JRay should inject its
/// pause-overlay script into the web client's index.html. When disabled,
/// any previously injected script is removed.
/// </summary>
public bool EnableOverlay { get; set; }
}