- License the project under GPL-3.0-or-later (LICENSE + SPDX headers). - CI workflow builds every push and pull request and checks manifest.json. - Release workflow: an annotated v* tag builds that version, creates a Gitea release with the zip attached and adds it to manifest.json. - Release zips now live in Gitea releases instead of dist/; build.sh is a local test build only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
20 lines
844 B
C#
20 lines
844 B
C#
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
using MediaBrowser.Model.Plugins;
|
|
|
|
namespace Jellyfin.Plugin.LightsOffTimer.Configuration;
|
|
|
|
public class PluginConfiguration : BasePluginConfiguration
|
|
{
|
|
/// <summary>Home Assistant webhook, e.g. https://ha.example/api/webhook/secret-id.</summary>
|
|
public string WebhookUrl { get; set; } = string.Empty;
|
|
|
|
/// <summary>Minutes Home Assistant waits after playback stops before turning the lights off.</summary>
|
|
public int CooldownMinutes { get; set; } = 15;
|
|
|
|
/// <summary>Also start the lights-off countdown on every playback stop, not only when the sleep timer is on.</summary>
|
|
public bool CountdownOnEveryStop { get; set; }
|
|
|
|
/// <summary>Comma-separated minute presets shown in the player menu.</summary>
|
|
public string MinutePresets { get; set; } = "15,30,45,60,90";
|
|
}
|