Files
jellyfin-plugin-smartnotify/Jellyfin.Plugin.SmartNotify/Configuration/PluginConfiguration.cs
TDPI b3304e61bf
All checks were successful
Create Release PR / Create Release PR (push) Successful in 17s
fix:: Plugin Erste Tests
2026-03-01 16:01:26 +01:00

70 lines
2.1 KiB
C#

using MediaBrowser.Model.Plugins;
namespace Jellyfin.Plugin.SmartNotify.Configuration;
/// <summary>
/// Plugin configuration.
/// </summary>
public class PluginConfiguration : BasePluginConfiguration
{
/// <summary>
/// Initializes a new instance of the <see cref="PluginConfiguration"/> class.
/// </summary>
public PluginConfiguration()
{
DiscordWebhookUrl = string.Empty;
NotificationDelayMinutes = 5;
GroupingWindowMinutes = 30;
EnableMovieNotifications = true;
EnableEpisodeNotifications = true;
SuppressUpgrades = true;
BotUsername = "Jellyfin SmartNotify";
EmbedColor = 3447003; // Discord blue
}
/// <summary>
/// Gets or sets the Discord webhook URL.
/// </summary>
public string DiscordWebhookUrl { get; set; }
/// <summary>
/// Gets or sets the delay before processing notifications (allows metadata to settle).
/// </summary>
public int NotificationDelayMinutes { get; set; }
/// <summary>
/// Gets or sets the time window in which episodes are grouped together.
/// </summary>
public int GroupingWindowMinutes { get; set; }
/// <summary>
/// Gets or sets a value indicating whether to notify for movies.
/// </summary>
public bool EnableMovieNotifications { get; set; }
/// <summary>
/// Gets or sets a value indicating whether to notify for episodes.
/// </summary>
public bool EnableEpisodeNotifications { get; set; }
/// <summary>
/// Gets or sets a value indicating whether to suppress notifications for quality upgrades.
/// </summary>
public bool SuppressUpgrades { get; set; }
/// <summary>
/// Gets or sets the Discord bot username.
/// </summary>
public string BotUsername { get; set; }
/// <summary>
/// Gets or sets the Discord embed color.
/// </summary>
public int EmbedColor { get; set; }
/// <summary>
/// Gets or sets the Jellyfin server URL for image links.
/// </summary>
public string ServerUrl { get; set; } = string.Empty;
}