first commit
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
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
|
||||
/// "<media file basename><TruthFileSuffix>" next to the media file,
|
||||
/// e.g. "Movie.mkv" -> "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; }
|
||||
}
|
||||
Reference in New Issue
Block a user