Metadata providers and artwork
A library is identified by one primary provider per title — TheTVDB for
television, TMDB for films, AniList for anime — and the title's details,
episode structure and titles come from that provider's record. Two settings
on the library shape this, both on Library under xmb.api.v1 and written
through LibraryService.UpdateLibrary.
Who identifies new content
metadata_providers is the order the match ladder asks providers when
something new appears in the library, disabled providers included so a client
renders exactly what the ladder will do. Send the whole list back, in the
order wanted; at least one provider must stay enabled. A title already
matched keeps its record and keeps refreshing from it.
Episode lists that change numbering
A successful episode refresh replaces the provider's current listing. Records removed from that listing remain available to existing file links and watch history, but are no longer offered as current episodes for a new library.
If a provider renumbers an imported season or replaces separate stories with combined broadcasts, that library keeps its saved season lineup, including missing episodes. Content counts and request pickers use that lineup instead of mixing both numbering schemes. Unchanged and newly added seasons continue to follow the current provider listing. Refreshing does not renumber existing files or move their watch history.
Films are one feature. Their IDs are never used to fetch a TV episode list, and cached TV episodes do not contribute seasons or episode rows to film pages.
Whose artwork the library wears
A title draws artwork from every record it carries: its primary, records the
server attached from other providers (TMDB's record is attached to every
TVDB-identified show that names a TMDB id, so it can wear TMDB's posters),
and other providers' records for the same work. artwork is the order that
decides whose image wins, per kind:
| Kind | Default order |
|---|---|
poster, backdrop, logo, thumb | TMDB, TheTVDB, AniList |
still, banner | TheTVDB, TMDB, AniList |
Within a provider the image in the viewer's language wins, then a language-neutral one, then the highest-voted. A provider with no image of a kind is skipped, so an earlier choice never leaves a title bare, and a custom upload is never replaced by nothing.
Send only the kinds being changed on UpdateLibraryRequest.artwork; the
others keep their order. A provider left out of a kind's list trails the ones
named, in default order. The change lands the next time each title's details
are refreshed — the hourly metadata pass — not immediately.