Skip to main content

## Module offline

Source

## Macros§

library_type_matches_item 🔒
  The Jellyfin taxonomy half of “does cached item `i` belong to library `l`”: the library’s `collection_type` against the item’s `item_type`.

## Structs§

CachedItem 🔒
OfflineRepository

## Statics§

INCLUDE_CATALOG_BROWSE 🔒
  Whether offline library queries may include catalog items that are merely browsed/synced but not downloaded (the greyed-out “browse the whole server” view). Defaults to `true` so online browsing (which reads this same cache as a fast path) still sees the full catalog.

## Functions§

build_fts_prefix_query 🔒
  Build a safe FTS5 prefix query from raw user input.
include_catalog_browse
  Whether offline `get_items` currently includes the synced-but-not-downloaded catalog (the greyed-out browse view). Mirrors `set_include_catalog_browse`.
row_to_cached_item 🔒
set_include_catalog_browse
  Set whether offline `get_items` includes non-downloaded (synced-only) catalog items. Called from the frontend: `true` when online or when the offline “Show all server media” toggle is on; `false` when offline with the toggle off (show downloaded/local media only).