mirror of
https://github.com/MrSleeps/jellyfin-scene-search.git
synced 2026-11-20 00:33:36 +00:00
62 lines
1.7 KiB
C#
62 lines
1.7 KiB
C#
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;
|
|
SelectedLibraryIds = [];
|
|
}
|
|
|
|
/// <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; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the Jellyfin library ids managed by Scene Search.
|
|
/// </summary>
|
|
public string[] SelectedLibraryIds { get; set; }
|
|
}
|