Skip to content

[bug] Hiding a library hides titles that are also in a visible library #2011

Open

Description

@Quick104

What happened

When a profile hides a library (Settings → Libraries, the "Hidden libraries" preference ui.disabled_library_ids), every title that also lives in another, still-visible library disappears for that profile. The title drops out of the visible library's grid, search, and the watchlist, and its detail page returns 404.

This affects servers that split the same shows or movies across libraries, for example an HD library and a 4K library, or a regular and a remux library. Hiding the 4K library should leave the HD copy browsable, but the whole title goes away instead.

Accounts restricted to a set of libraries by an admin are not affected. With the same libraries, an account allowed only the HD library still sees the shared titles.

Steps to reproduce

On a Silo dev deployment built from main at 47a2998:

  1. Create two series libraries whose roots both contain the same show. Here "TV Shows" (id 2) and "TV 4K" (id 3) both contain Moon Knight, One-Punch Man and The Queen's Gambit; media_item_libraries lists each of those series under both libraries.
  2. As an unrestricted account's profile, add Moon Knight to the watchlist.
  3. Hide "TV 4K" for that profile: PUT /api/v2/settings/values/ui.disabled_library_ids?scope=profile with {"value":[3]}.
  4. Request, with that profile:
    • GET /api/v2/catalog?library_id=2 (browse "TV Shows")
    • GET /api/v2/catalog?q=moon%20knight (search)
    • GET /api/v2/watchlist
    • GET /api/v2/catalog/items/series-tvdb-368611 (Moon Knight's detail page)

Before step 3:

browse lib 2: ['1883', '3 Body Problem', '56 Days', 'Moon Knight', 'One-Punch Man', 'Pokémon Chronicles', "The Queen's Gambit"]
search "moon knight": ['Moon Knight']
item detail Moon Knight: HTTP 200
watchlist: ['Moon Knight']

After step 3:

browse lib 2: ['1883', '3 Body Problem', '56 Days', 'Pokémon Chronicles']
search "moon knight": []
item detail Moon Knight: HTTP 404
watchlist: []

For comparison, a separate account restricted by an admin to Movies and "TV Shows" (library_ids {1,2}) still gets all seven shows in "TV Shows", finds Moon Knight in search, and opens its detail page (HTTP 200).

Expected behavior

Hiding a library hides that library, not titles that are also in a library the profile can still see. A title in both "TV Shows" and the hidden "TV 4K" should stay in "TV Shows", search, the watchlist and other rows, and open normally. Its 4K version should not be offered, because that file lives in the hidden library.

Silo version / commit

main at 47a2998

Deployment

Silo dev deployment (Docker Compose, PostgreSQL, Redis, S3-compatible storage), single node.

Clients affected

  • Web UI
  • Android
  • iOS/tvOS/macOS
  • Jellyfin-compat client (Infuse, Findroid, ...)
  • Other/not client-specific

The filtering happens on the server, so every client that sends the profile sees it. Only the native API was checked.

Relevant logs

No logs available. The requests succeed and return empty results or a 404; nothing is logged for them.

Technical notes

The scope resolver handles the preference two ways (internal/access/resolver.go, and library_decision in internal/policy/vendor/scope.rego):

  • A restricted viewer has the hidden IDs subtracted from its allowlist. Catalog queries then require membership in any remaining allowed library (EXISTS ... media_folder_id = ANY(allowed)), so a shared title stays.
  • An unrestricted viewer gets the hidden IDs as DisabledLibraryIDs. Catalog queries apply NOT EXISTS (... media_folder_id = ANY(disabled)) (libraryAccessConditions in internal/catalog/access_filter.go, and copies across internal/catalog, internal/sections, internal/jellycompat, and Meilisearch's library_ids NOT IN [...]). Membership in a hidden library removes the title even when it is also in a visible one.

The settings contract describes ui.disabled_library_ids as "Libraries you have hidden from your own browsing" and notes that it "is not an access control", so the global removal does not match the setting's intent.

AI harness

Claude Code (T3 Code)

AI tool(s)

Claude Code

AI model(s)

claude-opus-5-5

AI involvement

Fully AI-generated. A maintainer started the run; the AI agent reproduced the problem on a dev deployment, traced the cause in the source, and wrote this issue.

Independent or adversarial review

n/a

Confirmations

  • I reproduced this myself on a real deployment
  • Any logs provided are raw apart from marked redactions and are not AI-summarized; if none were available, I said so above

Source: community report on Discord (2 reports)

Activity

  1. added
    bug
    on Oct 6, 2026
  2. self-assigned this
    on Oct 6, 2026
  3. Quick104 commented on Oct 6, 2026

    @Quick104
    ContributorAuthor

    🤖 AI agent claim. Claude Code (claude-opus-5-5) is working on a fix for this issue on behalf of @Quick104, who is assigned.

    A pull request will link here when the fix is ready. If the work stops without a fix, the assignment and this comment are removed.

    Planning to work on this, or have context to add? Reply here and mention @Quick104.

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

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions