You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[feature] Let a household manager see which subtitle each session shows, as the admin sessions list does
#5734
My household watches on a hosted Silo server where I'm not the admin. I want everyone at home to press Play and just watch, with a Bulgarian subtitle already there and no menus to open. A small tool of mine, SubStation, does that:
Silo's Floppy watch provider tells it that playback started.
It checks what Silo already has for that title. With no Bulgarian subtitle, it takes the best match from the Bulgarian subtitle sites and syncs it to the file, or, when no site has one, translates the file's own English subtitle with an AI model.
It uploads the result with POST /api/v2/subtitles/upload, signed in as my account.
It also has an Activity page, like Tautulli for Plex, built on GET /api/v2/profiles/household/sessions. That list already gives me the title, the client, the video and how it's delivered, the audio track, the position and the routing. The subtitle is the one thing missing, so I can't see whether the Bulgarian subtitle we just added is the one on screen, whether someone is on another track, or whether subtitles are off.
A concrete case: one series in my household is remembered on its embedded English (SDH) track (I found it in the profile's subtitle preferences), so a Bulgarian subtitle we add for a new episode may not be what they see. The household list can't tell me which one is playing.
GET /api/v2/admin/sessions has had exactly this since #4562, which also wrote the limit down:
Household session rows do not get the field; it is on admin rows, events and history only.
That list needs a server admin, and on a hosted server the household manager usually isn't one, so it answers 403.
Who it affects
Household managers on a server they don't administer: a hosted Silo server, or a friend's or relative's. They can already see what the household is watching, only not with which subtitle. Bulgarian is just my example: the same goes for anyone who watches with subtitles in their own language, in Greece, Poland, Hungary, Romania, Israel or Brazil, and for any dashboard or companion tool that runs as a household account rather than an admin one.
Current workaround
None that is exact. My Activity page names a subtitle only after a viewer picks one by hand during playback (that profile's own user_settings.changed event). The track the player picks at start, which is most plays, shows as "Not reported by Silo". The other route would be an admin key, which a household can't create and which would see every account on the server.
Proposed behavior
Each row of the household sessions list says which subtitle that session shows, the way the admin sessions list has since #4562: the track, its language, whether it is forced or for the hearing impaired, where it comes from (in the file, a file next to it, downloaded or uploaded) and how it reaches the player, or that there is none. The list stays limited to the signed-in account's own sessions, so nothing about other accounts is exposed.
Showing it in the web's household view and in the apps would be follow-up work; this idea is only about the API.
I have a small change that does this, tested, attached as a patch on today's main (866af59) in case it saves you time. I'd be glad to open a pull request if you accept the idea.
Both lists already read the same row through playbackSessionsLoader, and that row already holds the subtitle; only the household response didn't map it. The patch (7 files, +147/-5):
adds subtitle to apiv2.PlaybackSession with the same nullable object and mapping the admin row uses (profiles.go, 6 lines);
regenerates contracts/api/v2/openapi.json, the list_household_sessions_ok fixture (one row with a subtitle, one with null) and web/src/api/v2/schema.ts;
mentions it in docs/admin-api.md and docs/architecture/api-contract.md.
Check
Result
gofmt, go vet ./internal/apiv2/
clean
go test ./internal/apiv2/ ./internal/contractspec/
ok; with the test fixture but without the profiles.go change, TestContractFixtures and TestCommittedArtifactMatchesRouter fail
apiv2-contract-diff against main
1 change, none breaking (a required, nullable property on listHouseholdSessions)
web: generate:apiv2, type check
no errors
The patch on a fresh main tarball: git apply --check, then the repo's Dockerfile, --target build
applies cleanly, builds
On my own server (a292b73, the build it runs, with the same code change; playback started through POST /api/v2/playback/start on file 3552, then both lists read while it played):
An admin key with admin:monitor:read. An admin has to create it, and it sees every account on the server, which is more than a household should see.
The watch-provider events (Floppy). They're the right signal that playback started, but they carry the title and position only. Adding the subtitle there would change the contract for every watch provider, Trakt included, which has no use for it.
The user_settings event and the remembered subtitle (GET /api/v2/subtitle-prefs/{id}). Both come only from a pick by hand, and the second is a preference, not what's on screen.
Jellyfin /Sessions. It lists only the sessions of the same compat login, so plays from the Silo apps or another Jellyfin client don't appear.
Related: #3742 (a session API for plugins and integrations), #5220 (third-party apps and the household sessions list), and #4716, the other half of the same setup (starting subtitles that are added during playback).
AI harness
Claude Code (Claude desktop app)
AI tool(s)
Claude Code
AI model(s)
claude-opus-5-5
AI involvement
Fully AI-generated, human verified
Independent or adversarial review
Scope: the attached patch and this text. Method: a separate review pass with Claude Code's /code-review at high effort over the diff, plus a checklist: reading the handler for who may call it and whose sessions it loads (still only the signed-in account's own, as the primary profile or an admin, unchanged), running the tests with and without the change, the contract diff, and a build with the repo's Dockerfile. It is the same AI tool, not a person or a different model. Findings: five minor, none blocking. (1) docs/admin-api.md didn't mention household rows: fixed. (2) No capability flag: documented that the key is always present, an object or null. (3) The web's household view and (4) the web's admin session type don't show the field: left as follow-up, outside this idea. (5) A long line in api-contract.md: rewrapped.
Confirmations
I searched Ideas and the issue tracker, including issues closed as not planned, and this is not already proposed
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Problem
My household watches on a hosted Silo server where I'm not the admin. I want everyone at home to press Play and just watch, with a Bulgarian subtitle already there and no menus to open. A small tool of mine, SubStation, does that:
POST /api/v2/subtitles/upload, signed in as my account.It also has an Activity page, like Tautulli for Plex, built on
GET /api/v2/profiles/household/sessions. That list already gives me the title, the client, the video and how it's delivered, the audio track, the position and the routing. The subtitle is the one thing missing, so I can't see whether the Bulgarian subtitle we just added is the one on screen, whether someone is on another track, or whether subtitles are off.A concrete case: one series in my household is remembered on its embedded English (SDH) track (I found it in the profile's subtitle preferences), so a Bulgarian subtitle we add for a new episode may not be what they see. The household list can't tell me which one is playing.
GET /api/v2/admin/sessionshas had exactly this since #4562, which also wrote the limit down:That list needs a server admin, and on a hosted server the household manager usually isn't one, so it answers 403.
Who it affects
Household managers on a server they don't administer: a hosted Silo server, or a friend's or relative's. They can already see what the household is watching, only not with which subtitle. Bulgarian is just my example: the same goes for anyone who watches with subtitles in their own language, in Greece, Poland, Hungary, Romania, Israel or Brazil, and for any dashboard or companion tool that runs as a household account rather than an admin one.
Current workaround
None that is exact. My Activity page names a subtitle only after a viewer picks one by hand during playback (that profile's own
user_settings.changedevent). The track the player picks at start, which is most plays, shows as "Not reported by Silo". The other route would be an admin key, which a household can't create and which would see every account on the server.Proposed behavior
Each row of the household sessions list says which subtitle that session shows, the way the admin sessions list has since #4562: the track, its language, whether it is forced or for the hearing impaired, where it comes from (in the file, a file next to it, downloaded or uploaded) and how it reaches the player, or that there is none. The list stays limited to the signed-in account's own sessions, so nothing about other accounts is exposed.
Showing it in the web's household view and in the apps would be follow-up work; this idea is only about the API.
I have a small change that does this, tested, attached as a patch on today's main (866af59) in case it saves you time. I'd be glad to open a pull request if you accept the idea.
The patch: 0001-feat-apiv2-report-the-planned-subtitle-on-household-.patch
The change and how it was tested
Both lists already read the same row through
playbackSessionsLoader, and that row already holds the subtitle; only the household response didn't map it. The patch (7 files, +147/-5):subtitletoapiv2.PlaybackSessionwith the same nullable object and mapping the admin row uses (profiles.go, 6 lines);contracts/api/v2/openapi.json, thelist_household_sessions_okfixture (one row with a subtitle, one withnull) andweb/src/api/v2/schema.ts;docs/admin-api.mdanddocs/architecture/api-contract.md.gofmt,go vet ./internal/apiv2/go test ./internal/apiv2/ ./internal/contractspec/profiles.gochange,TestContractFixturesandTestCommittedArtifactMatchesRouterfailapiv2-contract-diffagainst mainlistHouseholdSessions)generate:apiv2, type checkgit apply --check, then the repo's Dockerfile,--target buildOn my own server (a292b73, the build it runs, with the same code change; playback started through
POST /api/v2/playback/starton file 3552, then both lists read while it played):subtitlefilled insubtitlekey{"track_id":"file:3552:subtitle:3","language":"en","codec":"subrip","format":"vtt","source":"embedded","delivery":"sidecar","forced":false,"hearing_impaired":false}"subtitle": null"subtitle": nullAlternatives considered
admin:monitor:read. An admin has to create it, and it sees every account on the server, which is more than a household should see.user_settingsevent and the remembered subtitle (GET /api/v2/subtitle-prefs/{id}). Both come only from a pick by hand, and the second is a preference, not what's on screen./Sessions. It lists only the sessions of the same compat login, so plays from the Silo apps or another Jellyfin client don't appear.Related: #3742 (a session API for plugins and integrations), #5220 (third-party apps and the household sessions list), and #4716, the other half of the same setup (starting subtitles that are added during playback).
AI harness
Claude Code (Claude desktop app)
AI tool(s)
Claude Code
AI model(s)
claude-opus-5-5
AI involvement
Fully AI-generated, human verified
Independent or adversarial review
Scope: the attached patch and this text. Method: a separate review pass with Claude Code's
/code-reviewat high effort over the diff, plus a checklist: reading the handler for who may call it and whose sessions it loads (still only the signed-in account's own, as the primary profile or an admin, unchanged), running the tests with and without the change, the contract diff, and a build with the repo's Dockerfile. It is the same AI tool, not a person or a different model. Findings: five minor, none blocking. (1)docs/admin-api.mddidn't mention household rows: fixed. (2) No capability flag: documented that the key is always present, an object or null. (3) The web's household view and (4) the web's admin session type don't show the field: left as follow-up, outside this idea. (5) A long line inapi-contract.md: rewrapped.Confirmations
All reactions