No description
  • C# 70.4%
  • HTML 25.7%
  • Shell 3.9%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-08-19 19:55:54 +00:00
Jellyfin.Plugin.Wtchd feat: plugin 2026-08-17 20:51:03 +02:00
.gitignore feat: plugin 2026-08-17 20:51:03 +02:00
.gitlab-ci.yml feat: make ci commit manifest.json 2026-08-19 21:50:42 +02:00
build.yaml feat: plugin 2026-08-17 20:51:03 +02:00
compose.dev.yaml feat: plugin 2026-08-17 20:51:03 +02:00
Directory.Build.props feat: plugin 2026-08-17 20:51:03 +02:00
Jellyfin.Plugin.Wtchd.sln feat: plugin 2026-08-17 20:51:03 +02:00
LICENSE feat: plugin 2026-08-17 20:51:03 +02:00
manifest.json chore: stamp manifest.json for 1.0.0.0 [skip ci] 2026-08-19 19:55:54 +00:00
package.sh Edit package.sh 2026-08-19 14:25:48 +00:00
README.md feat: plugin 2026-08-17 20:51:03 +02:00

Jellyfin.Plugin.Wtchd

Scrobbles what you watch on a Jellyfin server to wtchd. Each Jellyfin user links their own wtchd account; the plugin then:

  • pushes a live "now watching" position (start/pause/resume/stop) while something plays, and
  • logs a permanent watch once playback crosses a configurable percentage of the runtime (default 80%).

Building

dotnet build -c Release

The compiled plugin is Jellyfin.Plugin.Wtchd/bin/Release/net9.0/Jellyfin.Plugin.Wtchd.dll. Targets Jellyfin 10.11 (net9.0). Building requires the .NET 9 SDK.

Installing

From the plugin repository, if one is published: Dashboard → Plugins → Repositories → +, paste the URL of this repo's manifest.json, then install wtchd from the catalogue. Jellyfin checks the zip's MD5 against the manifest, so a repository serving a stale checksum will refuse to install.

By hand: copy the built .dll into a new folder under Jellyfin's plugin directory, e.g. <jellyfin-data>/plugins/wtchd_1.0.0.0/Jellyfin.Plugin.Wtchd.dll, then restart Jellyfin. The plugin appears under Dashboard → Plugins → wtchd.

Publishing a release

manifest.json is the plugin repository Jellyfin reads — an array with one entry per plugin, each carrying every version it offers. package.sh builds the zip and fills in the parts that can only be known once it exists:

./package.sh                      # or: RELEASE_BASE=https://… ./package.sh

It writes dist/wtchd_<version>.zip, then stamps that version's checksum, timestamp and sourceUrl into manifest.json. Upload that zip — rebuilding afterwards produces a different MD5 and the manifest will no longer match it.

For a new version: bump <Version> in Directory.Build.props and version in build.yaml, add a versions entry to manifest.json (its version, targetAbi and changelog; the rest is stamped for you), then run package.sh. It refuses to package a version the manifest doesn't list, rather than guessing a changelog.

Setting up wtchd

The plugin is an OAuth public client (PKCE, no client secret embedded in it), so it needs its own OAuth app registered on your wtchd server:

  1. On wtchd, go to Settings → Developer and create a new OAuth app.
  2. Open the plugin's config page in Jellyfin (Dashboard → Plugins → wtchd) and copy the redirect URI shown there (http(s)://<your-jellyfin-host>/wtchd/callback).
  3. Add that redirect URI to the wtchd app you just created.
  4. Back in the plugin's config page, fill in your wtchd server URL and the app's client ID, and save. The api URL is optional — left blank, the plugin calls <server URL>/api; set it only if your API lives somewhere else.
  5. Under "Linked users", click Connect next to each Jellyfin user who should scrobble. This opens a new tab to wtchd's own authorize page — you need to already be logged into wtchd in that browser for it to work; if you're not, wtchd will show a plain 401 instead of a login prompt (wtchd doesn't have an OAuth consent screen yet). Log into wtchd first, then retry Connect.

Every Jellyfin user shares the same server URL/client ID, but authorizes individually — the same as any OAuth app with multiple users.