- C# 70.4%
- HTML 25.7%
- Shell 3.9%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| Jellyfin.Plugin.Wtchd | ||
| .gitignore | ||
| .gitlab-ci.yml | ||
| build.yaml | ||
| compose.dev.yaml | ||
| Directory.Build.props | ||
| Jellyfin.Plugin.Wtchd.sln | ||
| LICENSE | ||
| manifest.json | ||
| package.sh | ||
| README.md | ||
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:
- On wtchd, go to Settings → Developer and create a new OAuth app.
- 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). - Add that redirect URI to the wtchd app you just created.
- 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. - 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.