Repository navigation
Description
Summary
Personal collections can be enabled for server collections in Silo, but Jellyfin-compatible clients cannot discover or browse them. Expose opted-in personal collections as BoxSets while preserving account, profile and library access restrictions.
Related work
- Parent capability: [v1] Compatibility layers (Jellyfin / Audiobookshelf) #1245
- Validation task: Compatibility layers (Jellyfin / Audiobookshelf) — Jellyfin compatibility #1246. This change affects C1, C2 and C3; their results remain unchanged.
- Implementation: fix(jellycompat): expose opted-in personal collections as BoxSets #862
- Original discussion: Server-wide (admin) collection creation lacks the mdblist sort/display-filter options the user-side form has #401
This work does not replace the admin collection and sorting changes in #489.
User value / why v1
A personal watchlist can already hide watched content and keep its configured sort order in Silo. Jellyfin-compatible clients should see the same collection instead of requiring a separate server-wide copy. This closes a compatibility gap in an existing collection feature.
Scope
- Include opted-in personal collections and show the Collections view when they are the user's only visible collections.
- Reuse native collection membership, display filters and sort precedence, including saved profile preferences and explicit client sorting.
- Preserve access restrictions for collection listings, details, members and artwork.
- Keep collection IDs stable across restarts and apply filtering before pagination and totals are calculated.
Not included: exporting custom home sections, guaranteeing client home-screen placement, adding list providers, changing synchronization schedules, or adding watched filters to admin collections.
API surface
This extends existing Jellyfin-compatible routes and does not change the native API contract:
GET /UserViewsandGET /Users/{userId}/ViewsGET /Items?IncludeItemTypes=BoxSetGET /Items/{id}GET /Items?ParentId={boxSetId}GET /Items/{id}/Images/Primary
Evidence
With the same fixture, clean upstream returned one opted-in native collection but no personal BoxSet or Collections view. The implementation returned the personal BoxSet and made the Collections view visible.
The current branch was migrated against a fresh PostgreSQL 18 database on an isolated Linux host. Focused database and Jellyfin-router tests passed with race detection, and the database query-budget pins passed without skips.
Client impact
Silo's native clients and native API are unchanged. Jellyfin-compatible clients consume the existing BoxSet representation.
Rough size
M — a server-side adapter over existing collection behavior, with access control, stable IDs and artwork handling.
AI Disclosure
- Harness: Codex
- Tool(s): Codex
- Model(s):
gpt-5.6-sol - Involvement: AI-assisted
- Adversarial review: Reviewed the complete implementation and its callers, access boundaries, ID namespace, image fetching, filtering, pagination and migrations. The review found and corrected ID collisions, library-scope overflow, missing media filters, episode and backdrop handling, poster request forgery risks, a legacy-cache authorization bypass, and missing forwarding of newer Jellyfin browse filters. Regression tests cover the resolved findings.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsNo status
Activity
zZebrahz commentedon Sep 28, 2026
Heads-up from Collections validation, 27 Sep 2026: #1615 changes personal collection sharing before 1.0.
include_in_server_collectionsstays as it is, so this work still applies, but two things change for the BoxSets exposed here:allowed_profile_idsis removed. A personal collection is visible to its owner, or, when shared, to every profile on the owner's login.Personal collection groups are also removed; the library-level "My collections" group isn't affected.
AI-assisted comment (Claude Code, Claude Opus 5.5), at the maintainer's direction.
bulderi commentedon Sep 30, 2026
Thanks for the heads-up. #862 follows today's native rules and does not try to anticipate #1615:
serverVisibleWherepredicate ininternal/usercollections/listing.goas the library Collections tab.ChildCountfromcatalog.CountVisiblePersonalCollections, which the native collection routes use too.So when #1615 removes
allowed_profile_idsand adds the owner's access limit in those places, BoxSets follow without a separate change. The store tests that pin today's profile rule will fail at that point, which flags the BoxSet side to whoever implements it. #862 does not use personal collection groups.AI-assisted comment (Claude Code,
claude-opus-5-5).