Skip to content

[v1] Expose opted-in personal collections to Jellyfin-compatible clients #861

Open

Description

@bulderi

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

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 /UserViews and GET /Users/{userId}/Views
  • GET /Items?IncludeItemTypes=BoxSet
  • GET /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.

Activity

  1. added
    v1.0-proposed
    on Aug 31, 2026
  2. added
    bug
    triaged
    and removed
    triaged
    on Sep 20, 2026
  3. added theissue type on Sep 20, 2026
  4. removed
    bug
    on Sep 20, 2026
  5. zZebrahz commented on Sep 28, 2026

    @zZebrahz
    Contributor

    Heads-up from Collections validation, 27 Sep 2026: #1615 changes personal collection sharing before 1.0. include_in_server_collections stays as it is, so this work still applies, but two things change for the BoxSets exposed here:

    • Visibility: allowed_profile_ids is removed. A personal collection is visible to its owner, or, when shared, to every profile on the owner's login.
    • Members: a shared collection shows each viewer only titles both the owner and that viewer can access. The owner's limit applies here too, not only the viewer's.

    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.

  6. bulderi commented on Sep 30, 2026

    @bulderi
    ContributorAuthor

    Thanks for the heads-up. #862 follows today's native rules and does not try to anticipate #1615:

    • Visibility uses the same serverVisibleWhere predicate in internal/usercollections/listing.go as the library Collections tab.
    • Members come from the catalog resolver, and ChildCount from catalog.CountVisiblePersonalCollections, which the native collection routes use too.

    So when #1615 removes allowed_profile_ids and 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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    v1.0-proposed

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions