mirror of
https://github.com/MrSleeps/jellyfin-scene-search.git
synced 2026-11-15 22:41:28 +00:00
Add PluginConfiguration.cs
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
Reference in New Issue
Block a user