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:
1 parent
3a1960d860
commit
bf6cd4540f
30 files changed
+3096
No files matched your search
@@ -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>
|
||||
Reference in new issue
Block a user