fix(nav): inject request tab via file transformation

Register with IAmParadox File Transformation so the Request tab works when jellyfin-web is read-only (Docker/Unraid). Keep disk patch as fallback. Publish 1.0.0.2.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Michael SloanandCursor committed 2026-08-02 16:41:47 -04:00
1 parent 4531603d08
commit 57798d30e8
11 files changed
+175 -56

No files matched your search

+15 -17
View File
@@ -17,8 +17,17 @@ Jellyfin does not clone git repos for plugins. It reads a `manifest.json` URL an
https://git.masengr.com/Michael-A-Sloan/Jellyfin_Request_tvandmovies/raw/branch/main/manifest.json
```
3. Open **Catalog**, find **Request**, install it, then restart Jellyfin.
4. Configure under **Dashboard → Plugins → Request** (TMDB API key + enable submissions).
3. Also add Paradox’s repo (needed for the home **Request** tab on Docker/Unraid):
```text
https://www.iamparadox.dev/jellyfin/plugins/manifest.json
```
4. From **Catalog**, install **File Transformation**, then install **Request**, then restart Jellyfin.
5. Configure under **Dashboard → Plugins → Request** (TMDB API key + enable submissions).
6. Hard-refresh the browser (Ctrl+F5). You should see a **Request** tab next to Home/Favorites.
Direct page (even without the tab): `/Requests/Page`
## Requirements
@@ -33,7 +42,7 @@ dotnet restore Jellyfin.Plugin.Request.sln
.\scripts\package-release.ps1
```
That rebuilds the DLL, writes `release/Jellyfin.Plugin.Request_10.11.11.zip`, and refreshes `manifest.json` (including the MD5 checksum Jellyfin verifies).
That rebuilds the DLL, writes `release/Jellyfin.Plugin.Request_<version>.zip`, and refreshes `manifest.json` (including the MD5 checksum Jellyfin verifies).
Commit and push `manifest.json` + `release/*.zip` so the raw Gitea URLs stay valid.
@@ -45,15 +54,11 @@ Jellyfin.Plugin.Request\bin\Release\net9.0\Jellyfin.Plugin.Request.dll
## Request nav tab
On startup the plugin tries to inject:
The plugin injects `nav-loader.js` into jellyfin-web so a **Request** item appears in the top tabs and side menu.
```html
<script src="/Requests/Assets/nav-loader.js" defer></script>
```
**Preferred:** install [File Transformation](https://github.com/IAmParadox27/jellyfin-plugin-file-transformation). The Request plugin registers with it at startup and patches `index.html` in memory (survives Jellyfin updates; works when the web folder is read-only).
into jellyfin-web `index.html`. That adds a **Request** item to the top library tabs and side menu.
Docker and some packaged installs make `index.html` read-only. If the tab does not appear, run the matching script with a writable path:
**Fallback:** if File Transformation is not installed, the plugin tries to write the script tag into `index.html` on disk. That often fails in Docker/Unraid. Manual scripts:
```bash
sudo bash scripts/install-web-loader.sh /usr/share/jellyfin/web/index.html
@@ -63,13 +68,6 @@ sudo bash scripts/install-web-loader.sh /usr/share/jellyfin/web/index.html
.\scripts\install-web-loader.ps1 -IndexPath "C:\Program Files\Jellyfin\Server\jellyfin-web\index.html"
```
Jellyfin updates can replace `index.html`. Re-run the install script if the tab disappears.
Uninstall helpers:
- `scripts/uninstall-web-loader.sh`
- `scripts/uninstall-web-loader.ps1`
## API overview
Authenticated Jellyfin users call plugin endpoints under `/Requests`: