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
Send library_id on item detail and watch reads for library-scoped versions #309
When an admin enables that setting, GET /api/v2/catalog/items/{id}?library_id=… and the versions/season/episode reads return only the versions stored in the named library. A read without library_id still returns every accessible version. The client decides whether it is browsing a library; the server cannot infer it.
Today CatalogApi.getItemDetail(id) (shared/src/commonMain/kotlin/org/siloserver/silo/network/api/CatalogApi.kt) and the watch read send no library_id, so the setting has no effect on Android phone or TV.
Work
Thread the browse-context library ID from the library screens through to the detail and watch reads. Home, search, and deep links stay unscoped.
Pass it as library_id on getCatalogItem, listCatalogItemVersions, listCatalogItemEpisodes, listSeriesSeasons, getSeriesSeason, listSeasonEpisodes, and getWatchDetail. The server applies membership validation and presentation-language fallback either way; the versions scope only applies when the setting is on.
The client's version picker should render whatever comes back; no capability probe is needed.
Not in scope
Playback and watch-together never narrow on the server regardless of library_id; nothing to do there.
Activity