Request catalogue
RequestService.SearchCatalogue is the discovery and search endpoint for the
Requests screen. server_slug selects the household. A non-empty query
searches the configured metadata providers across every library category on
that server, unless category narrows it to one kind. Search ignores mode.
Search combines records linked by shared external provider IDs into one
result, preferring the record already held by the household, then an existing
request. This preserves the library badge and the correct detail link.
Matching names or release years alone do not merge records: remakes and
unrelated same-named titles remain separate. The search page_size limit is
applied after merging duplicates.
With an empty query, mode selects a feed:
| Mode | Results |
|---|---|
DISCOVER_MODE_POPULAR (also the unspecified default) | TMDB's popular films and TV shows, with TheTVDB as a fallback when TMDB has no feed. Other categories use their available provider's popularity feed. |
DISCOVER_MODE_UPCOMING | The first available upcoming feed for each category. |
DISCOVER_MODE_MOST_REQUESTED | Titles requested by this server's members, ranked by requester count. |
When category is unspecified, Popular and Upcoming alternate results from
the server's library categories while preserving each feed's own order. A
provider record appearing in overlapping categories is returned once. Set
category to see a single feed in its original order. page_size limits the
combined result; zero uses 50.
Popular and Upcoming support pagination. Send page_token from the previous
response's next_page_token with the same category, mode, genre and sort.
An empty token starts a new feed; an empty next_page_token means there are no
more results. The web view loads 20 titles at a time as the reader scrolls.
TMDB discovery continues through its available pages (up to the provider's
500-page limit). Providers with finite suggestion feeds stop at that feed's end.
Continuations preserve each category's position and provider. In All, an
explicit sort merges the next available film and TV results without discarding
rows left over from the previous page. A provider failure returns UNAVAILABLE
and can be retried with the same token. A token used with different filters
returns INVALID_ARGUMENT; changing filters should start with an empty token.
Provider rankings can change during browsing, so clients should suppress
overlapping cards by category and provider identity.
Title searches and Most requested remain bounded results and do not issue
continuation tokens. The shared client useCatalogue keeps its combined
data.entries shape and exposes fetchNextPage, hasNextPage and the query's
loading/error state for discovery.
For film and TV discovery, genres in the response lists the available genre
keys and display names. Pass one key as genre, or leave it empty for all
genres. Related film and television genres share a key, such as
action-adventure and science-fiction-fantasy. A genre available only for
films contributes no television results when browsing All.
sort selects CATALOGUE_SORT_POPULARITY, CATALOGUE_SORT_RATING,
CATALOGUE_SORT_RELEASE_DATE, or CATALOGUE_SORT_TITLE. Rating requires at
least 100 TMDB votes. Release-date order shows the newest released titles in
Popular and the soonest premieres in Upcoming. Title order is ascending.
Unspecified preserves the feed's original ranking.
Genre and explicit sort constraints run against TMDB discovery before fetching
the result page; they do not filter only the already-loaded popular posters.
Film and TV results are then combined under the selected order. If TMDB has
no matches, an unfiltered provider feed is not substituted. The filters require
TMDB to be configured and are not offered for anime-only categories.
They are ignored for non-empty title searches and Most requested. Unknown or
unavailable genre keys return INVALID_ARGUMENT.
Each entry's candidate.provider and candidate.provider_id identify the
record to pass to the catalogue detail and request methods. A popular title
already held or requested under another provider may retain that existing
record identity even when TMDB supplied its ranking and poster. Use the
entry's category alongside its provider record when opening it: TMDB's film
and TV IDs are separate sequences and the same number can refer to different
works. Use holding and request for the corresponding badges and actions.
sources names the metadata providers whose feeds supplied the
discovery results; for a typed search it names the providers searched.