using MediaBrowser.Model.Plugins;
namespace Jellyfin.Plugin.ShareLinks.Configuration;
///
/// Plugin configuration persisted by Jellyfin.
///
public class PluginConfiguration : BasePluginConfiguration
{
/// Gets or sets a value indicating whether the plugin is enabled.
public bool Enabled { get; set; } = true;
/// Gets or sets the default share expiry in hours.
public int DefaultExpiryHours { get; set; } = 24;
/// Gets or sets the maximum allowed share expiry in hours.
public int MaxExpiryHours { get; set; } = 720;
///
/// Gets or sets an override for the public base URL used when building
/// absolute share links. Empty means "derive from the incoming request".
///
public string PublicBaseUrlOverride { get; set; } = string.Empty;
///
/// Gets or sets the prefix used when creating guest user names.
///
public string GuestUsernamePrefix { get; set; } = "share-";
/// Gets or sets a value indicating whether shares may transcode.
public bool AllowTranscoding { get; set; } = true;
/// Gets or sets a value indicating whether shares may remux.
public bool AllowRemuxing { get; set; } = true;
/// Gets or sets the cleanup interval, in minutes.
public int CleanupIntervalMinutes { get; set; } = 60;
/// Gets or sets a value indicating whether links default to one use.
public bool OneUseDefault { get; set; } = true;
/// Gets or sets a value indicating whether guest-mode lockdown is enabled.
public bool GuestModeLockdownEnabled { get; set; } = true;
}