feat(repo): add request plugin with jellyfin catalog manifest

Ship the plugin sources, release zip, and SeerrFin-style manifest.json so Jellyfin can install from the Gitea raw repository URL.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Michael SloanandCursor committed 2026-08-02 16:31:26 -04:00
1 parent 3a1960d860
commit bf6cd4540f
30 files changed
+3096

No files matched your search

@@ -0,0 +1,25 @@
using MediaBrowser.Model.Plugins;
namespace Jellyfin.Plugin.Request.Configuration;
/// <summary>
/// Plugin configuration for the Request plugin.
/// </summary>
public sealed class PluginConfiguration : BasePluginConfiguration
{
/// <summary>
/// Gets or sets the TMDB API key. Used only server-side.
/// </summary>
public string TmdbApiKey { get; set; } = string.Empty;
/// <summary>
/// Gets or sets a value indicating whether users may submit requests.
/// </summary>
public bool EnableRequestSubmission { get; set; }
/// <summary>
/// Gets or sets a value indicating whether users may request individual TV seasons.
/// When false, TV requests always cover all seasons.
/// </summary>
public bool AllowSeasonSelection { get; set; } = true;
}
@@ -0,0 +1,78 @@
<!DOCTYPE html>
<html>
<head>
<title>Request</title>
</head>
<body>
<div id="RequestConfigPage" data-role="page" class="page type-interior pluginConfigurationPage" data-require="emby-input,emby-button,emby-checkbox">
<div data-role="content">
<div class="content-primary">
<form id="RequestConfigForm">
<div class="sectionTitleContainer flex align-items-center">
<h2 class="sectionTitle">Request</h2>
</div>
<div class="verticalSection">
<div class="inputContainer">
<label class="inputLabel inputLabelUnfocused" for="TmdbApiKey">TMDB API key</label>
<input is="emby-input" type="password" id="TmdbApiKey" autocomplete="off" />
<div class="fieldDescription">
Create a free key at themoviedb.org. Stored server-side only; never sent to browsers by plugin APIs.
</div>
</div>
<label class="checkboxContainer">
<input is="emby-checkbox" type="checkbox" id="EnableRequestSubmission" />
<span>Enable request submission</span>
</label>
<div class="fieldDescription checkboxFieldDescription">
Leave disabled until TMDB search is configured and tested.
</div>
<label class="checkboxContainer">
<input is="emby-checkbox" type="checkbox" id="AllowSeasonSelection" />
<span>Allow users to request individual TV seasons</span>
</label>
<div class="fieldDescription checkboxFieldDescription">
When unchecked, TV requests always cover all seasons.
</div>
</div>
<div>
<button is="emby-button" type="submit" class="raised button-submit block">
<span>Save</span>
</button>
</div>
</form>
</div>
</div>
<script type="text/javascript">
(() => {
const pluginId = "11c08950-c4bb-484d-89ff-205b3724416b";
const page = document.querySelector("#RequestConfigPage");
const form = page.querySelector("#RequestConfigForm");
page.addEventListener("pageshow", () => {
Dashboard.showLoadingMsg();
ApiClient.getPluginConfiguration(pluginId).then((config) => {
page.querySelector("#TmdbApiKey").value = config.TmdbApiKey || "";
page.querySelector("#EnableRequestSubmission").checked = !!config.EnableRequestSubmission;
page.querySelector("#AllowSeasonSelection").checked = config.AllowSeasonSelection !== false;
Dashboard.hideLoadingMsg();
});
});
form.addEventListener("submit", (event) => {
event.preventDefault();
Dashboard.showLoadingMsg();
ApiClient.getPluginConfiguration(pluginId).then((config) => {
config.TmdbApiKey = page.querySelector("#TmdbApiKey").value.trim();
config.EnableRequestSubmission = page.querySelector("#EnableRequestSubmission").checked;
config.AllowSeasonSelection = page.querySelector("#AllowSeasonSelection").checked;
return ApiClient.updatePluginConfiguration(pluginId, config);
}).then(() => {
Dashboard.processPluginConfigurationUpdateResult();
});
return false;
});
})();
</script>
</div>
</body>
</html>