@@ -42,6 +43,28 @@
+
+ Can’t find it on TMDB? Submit a custom movie or TV request for the admin to review.
+
+
@@ -163,6 +186,8 @@
};
}
+ const tmdbId = Number(item.tmdbId ?? item.TmdbId ?? 0);
+ const isCustom = !!(item.isCustom ?? item.IsCustom) || tmdbId <= 0;
return {
id: item.id ?? item.Id ?? "",
mediaType: item.mediaType || item.MediaType || "",
@@ -174,7 +199,10 @@
requestedByName: item.requestedByName || item.RequestedByName || "Unknown",
createdAtUtc: item.createdAtUtc || item.CreatedAtUtc || null,
status: item.status ?? item.Status,
- adminNote: item.adminNote || item.AdminNote || null
+ adminNote: item.adminNote || item.AdminNote || null,
+ notes: item.notes || item.Notes || null,
+ isCustom,
+ tmdbId
};
}
@@ -198,6 +226,7 @@
function createController(root) {
const state = {
mediaType: "multi",
+ customMediaType: "movie",
status: null,
isAdmin: false,
detail: null,
@@ -213,10 +242,16 @@
searchMeta: root.querySelector('[data-role="search-meta"]'),
results: root.querySelector('[data-role="results"]'),
detail: root.querySelector('[data-role="detail"]'),
+ customForm: root.querySelector('[data-role="custom-form"]'),
+ customTitle: root.querySelector('[data-role="custom-title"]'),
+ customYear: root.querySelector('[data-role="custom-year"]'),
+ customNotes: root.querySelector('[data-role="custom-notes"]'),
+ customSubmit: root.querySelector('[data-role="custom-submit"]'),
mineList: root.querySelector('[data-role="mine-list"]'),
adminList: root.querySelector('[data-role="admin-list"]'),
adminTab: root.querySelector('[data-role="admin-tab"]'),
searchView: root.querySelector('[data-role="search-view"]'),
+ customView: root.querySelector('[data-role="custom-view"]'),
mineView: root.querySelector('[data-role="mine-view"]'),
adminView: root.querySelector('[data-role="admin-view"]')
};
@@ -246,6 +281,7 @@
tab.classList.toggle("active", tab.dataset.view === view);
});
els.searchView.classList.toggle("req-hidden", view !== "search");
+ els.customView.classList.toggle("req-hidden", view !== "custom");
els.mineView.classList.toggle("req-hidden", view !== "mine");
els.adminView.classList.toggle("req-hidden", view !== "admin");
if (view === "mine" || (view === "admin" && state.isAdmin)) {
@@ -546,10 +582,11 @@
${img ? `
` : ""}
-
${escapeHtml(item.title)}
+
${escapeHtml(item.title)}${item.isCustom ? ' Custom' : ""}
${escapeHtml(item.mediaType)}${item.year ? ` · ${escapeHtml(item.year)}` : ""}${seasons ? ` · ${escapeHtml(seasons)}` : ""}
Requested by ${escapeHtml(item.requestedByName)} · ${escapeHtml(formatRequestDate(item.createdAtUtc))}
${escapeHtml(status)}
+ ${item.notes ? `
Notes: ${escapeHtml(item.notes)}
` : ""}
${item.adminNote ? `
${escapeHtml(item.adminNote)}
` : ""}
${actions}
@@ -609,14 +646,22 @@
tab.addEventListener("click", () => setView(tab.dataset.view));
});
- root.querySelectorAll(".req-type-btn").forEach((button) => {
+ els.searchView.querySelectorAll(".req-type-btn").forEach((button) => {
button.addEventListener("click", () => {
- root.querySelectorAll(".req-type-btn").forEach((item) => item.classList.remove("active"));
+ els.searchView.querySelectorAll(".req-type-btn").forEach((item) => item.classList.remove("active"));
button.classList.add("active");
state.mediaType = button.dataset.type;
});
});
+ root.querySelectorAll('[data-role="custom-type"]').forEach((button) => {
+ button.addEventListener("click", () => {
+ root.querySelectorAll('[data-role="custom-type"]').forEach((item) => item.classList.remove("active"));
+ button.classList.add("active");
+ state.customMediaType = button.dataset.type;
+ });
+ });
+
els.searchBtn.addEventListener("click", runSearch);
els.searchInput.addEventListener("keydown", (event) => {
if (event.key === "Enter") {
@@ -624,6 +669,54 @@
}
});
+ els.customForm.addEventListener("submit", async (event) => {
+ event.preventDefault();
+ const title = els.customTitle.value.trim();
+ if (!title) {
+ showMessage("Enter a title for the custom request.", true);
+ return;
+ }
+
+ if (state.status && !(state.status.requestSubmissionEnabled ?? state.status.RequestSubmissionEnabled)) {
+ showMessage("Request submission is disabled. Enable it in Dashboard → Plugins → Request.", true);
+ return;
+ }
+
+ const yearRaw = els.customYear.value.trim();
+ const year = yearRaw ? Number(yearRaw) : null;
+ if (yearRaw && (!Number.isFinite(year) || year < 1870 || year > 2100)) {
+ showMessage("Year must be between 1870 and 2100.", true);
+ return;
+ }
+
+ els.customSubmit.disabled = true;
+ try {
+ await api("", {
+ method: "POST",
+ body: JSON.stringify({
+ isCustom: true,
+ mediaType: state.customMediaType,
+ title,
+ year,
+ notes: els.customNotes.value.trim() || null,
+ allSeasons: true,
+ tmdbId: 0
+ })
+ });
+ els.customForm.reset();
+ state.customMediaType = "movie";
+ root.querySelectorAll('[data-role="custom-type"]').forEach((item) => {
+ item.classList.toggle("active", item.dataset.type === "movie");
+ });
+ showMessage(`Custom request submitted for “${title}”.`);
+ setView("mine");
+ } catch (error) {
+ showMessage(error.message, true);
+ } finally {
+ els.customSubmit.disabled = false;
+ }
+ });
+
Promise.all([loadStatus(), loadCurrentUser()]).then(() => {
applyAdminUi();
});
@@ -636,8 +729,12 @@
return null;
}
- if (container.dataset.reqMounted === "1") {
- return container._jellyfinRequestController || null;
+ const force = !!options.force;
+ const hasUi = !!container.querySelector(".req-root");
+ if (container.dataset.reqMounted === "1" && hasUi && !force) {
+ const existing = container._jellyfinRequestController || null;
+ existing?.reload?.();
+ return existing;
}
container.innerHTML = MARKUP;
diff --git a/build.yaml b/build.yaml
index b5a9727..d6c885d 100644
--- a/build.yaml
+++ b/build.yaml
@@ -1,7 +1,7 @@
---
name: "Request"
guid: "11c08950-c4bb-484d-89ff-205b3724416b"
-version: "1.0.0.9"
+version: "1.0.1.0"
targetAbi: "10.11.11.0"
framework: "net9.0"
overview: "Request movies and TV shows from a local admin review queue"
diff --git a/manifest.json b/manifest.json
index 93a4f53..6efdf70 100644
--- a/manifest.json
+++ b/manifest.json
@@ -9,12 +9,12 @@
"repositoryUrl": "https://git.masengr.com/Michael-A-Sloan/Jellyfin_Request_tvandmovies",
"versions": [
{
- "version": "1.0.0.9",
- "changelog": "Admin queue approve/reject/fulfill/delete; admin tab and buttons only for admins",
+ "version": "1.0.1.0",
+ "changelog": "Custom non-TMDB requests; fix blank Request tab needing hard refresh",
"targetAbi": "10.11.11.0",
- "sourceUrl": "https://git.masengr.com/Michael-A-Sloan/Jellyfin_Request_tvandmovies/raw/branch/main/release/Jellyfin.Plugin.Request_1.0.0.9.zip",
- "checksum": "0A263FF8AC56B02D9C8021607CD1B087",
- "timestamp": "2026-08-02T21:40:27.2325188Z",
+ "sourceUrl": "https://git.masengr.com/Michael-A-Sloan/Jellyfin_Request_tvandmovies/raw/branch/main/release/Jellyfin.Plugin.Request_1.0.1.0.zip",
+ "checksum": "1DBFBFD428DCBD011C4154147C42EA1F",
+ "timestamp": "2026-08-02T21:46:53.5809145Z",
"dependencies": []
}
]
diff --git a/release/Jellyfin.Plugin.Request_1.0.1.0.zip b/release/Jellyfin.Plugin.Request_1.0.1.0.zip
new file mode 100644
index 0000000..dff87c2
Binary files /dev/null and b/release/Jellyfin.Plugin.Request_1.0.1.0.zip differ
diff --git a/scripts/package-release.ps1 b/scripts/package-release.ps1
index bada36b..6c6b197 100644
--- a/scripts/package-release.ps1
+++ b/scripts/package-release.ps1
@@ -1,5 +1,5 @@
param(
- [string]$Version = "1.0.0.9",
+ [string]$Version = "1.0.1.0",
[string]$TargetAbi = "10.11.11.0",
[string]$RepoRawBase = "https://git.masengr.com/Michael-A-Sloan/Jellyfin_Request_tvandmovies/raw/branch/main"
)
@@ -17,7 +17,7 @@ $dllPath = Join-Path $root "Jellyfin.Plugin.Request\bin\Release\net9.0\Jellyfin.
$zipPath = Join-Path $releaseDir $zipFileName
$manifestPath = Join-Path $root "manifest.json"
$timestamp = (Get-Date).ToUniversalTime().ToString("yyyy-MM-ddTHH:mm:ss.fffffffZ")
-$changelog = "Admin queue approve/reject/fulfill/delete; admin tab and buttons only for admins"
+$changelog = "Custom non-TMDB requests; fix blank Request tab needing hard refresh"
Write-Host "Building plugin..."
dotnet build (Join-Path $root "Jellyfin.Plugin.Request.sln") -c Release