Add PluginConfiguration.cs

This commit is contained in:
Sleeps
2026-10-06 16:52:29 +01:00
parent 3564746afb
commit 5786efc1f1
@@ -0,0 +1,55 @@
using MediaBrowser.Model.Plugins;
namespace Jellyfin.Plugin.SceneSearch.Configuration;
/// <summary>
/// Configuration for the Scene Search Jellyfin plugin.
/// </summary>
public class PluginConfiguration : BasePluginConfiguration
{
public PluginConfiguration()
{
Enabled = true;
ApiUrl = "http://127.0.0.1:8097";
ApiKey = string.Empty;
RequirePrefix = true;
SearchPrefix = "scene:";
MaxResults = 20;
TimeoutSeconds = 60;
}
/// <summary>
/// Gets or sets a value indicating whether semantic scene search is enabled.
/// </summary>
public bool Enabled { get; set; }
/// <summary>
/// Gets or sets the scene-search HTTP API base URL.
/// </summary>
public string ApiUrl { get; set; }
/// <summary>
/// Gets or sets the optional shared API key.
/// </summary>
public string ApiKey { get; set; }
/// <summary>
/// Gets or sets a value indicating whether search terms must begin with <see cref="SearchPrefix"/>.
/// </summary>
public bool RequirePrefix { get; set; }
/// <summary>
/// Gets or sets the prefix used to opt in to scene search.
/// </summary>
public string SearchPrefix { get; set; }
/// <summary>
/// Gets or sets the maximum number of Jellyfin items returned by scene search.
/// </summary>
public int MaxResults { get; set; }
/// <summary>
/// Gets or sets the HTTP timeout in seconds.
/// </summary>
public int TimeoutSeconds { get; set; }
}