Skip to content

feat(library): show TMDB's overview when no description gives one - #1728

Merged
moodiness merged 2 commits into
mainfrom
feat/overview-fallback
Dec 5, 2026
Merged

moodiness merged 2 commits into
mainfrom
feat/overview-fallback

Conversation

@moodiness

Copy link
Copy Markdown
Owner

A movie, series or episode whose descriptions give no overview showed none. The server addon's description stood in for an empty overview in the user's language, but nothing filled an overview the server's addon lacks too, even with a TMDB key.

With the server's TMDB key, a title's or episode's page now shows TMDB's overview when no description gives one:

  1. in the user's metadata language, else the server's;
  2. else in English;
  3. else in the title's original language, as TMDB gives it.
  • Movies and series: translations joins the append_to_response of the one details request that already reads their credits, studios, tagline and services. The overviews of every language and the original language are kept in title_credits and read again with the credits, every 30 days or on Refresh metadata. No request of their own. The overviews are read from the database only for the title shown, never with the credits listings read. Credits kept before have no overviews, so they are due again once, at a title's page or in the next pass, as when studios and services were added.
  • Episodes: the overview comes from TMDB's answer about the episode's season in a language, kept in memory 24 hours by the TMDB client and paced like every TMDB request. English is the answer the episode's guest stars already read, so it costs nothing. Another user language costs one request for the first episode of a season opened; the original language one more, only when neither has an overview. The page waits a second at most; an answer TMDB gives later shows at the next open.
  • Listings ask TMDB nothing: libraries, rows, search, Items by identifier and episode lists show the descriptions' overviews only. The movie or series fill reads only what is kept; the episode fill runs only from the item page.
  • Edit metadata: the editor starts from TMDB's overview (Library.Original), so saving it unchanged keeps following TMDB and stores no edit.
  • Without a key: TMDB is never asked, and overviews read with a key no longer show once it is taken off.
  • Blank text: text of nothing but spaces and direction marks now counts as empty: a title's and an episode's overview from any description, TMDB's overviews, and every text a description in the user's language gives (name, overview, images, episodes' names, overviews and thumbnails). An episode whose title is blank in that description shows its name.
  • Sources: no Polyfin screen or API field shows where a title's texts come from, and Jellyfin's items have none, so there is no UI change.
  • Docs: docs/addons.md (new "Overviews no description gives" with how Jellyfin differs, and the blank texts of a description in a language), docs/getting-started.md (what a TMDB key adds).

Cost per title opened: a movie or series, 0 requests (1 once for credits kept before this change, which the next pass would read anyway). An episode, 0 for an English user; 1 per season for a user of another language; 1 more per season, only when neither language has an overview, for the original language.

Upgrading: nothing to do. A migration adds two nullable columns to title_credits; kept credits are read again once.

Tests:

  • TestTitlesWithoutAnOverviewShowTMDBs (new): movies whose addon gives no overview get TMDB's in French (the server's language), else English, even for a Japanese original that has a Japanese overview, else the original language (Japanese); a blank addon overview, and TMDB's French of a direction mark alone, are replaced; an addon's overview stays; each movie costs its one details request, with translations. Fails without the fill, without translations appended, without the blank checks, and with the original language before English.
  • TestAnEpisodeWithoutAnOverviewShowsTMDBs (new): a season in French gives the first episode's, English the second's whose addon overview is blank; each season answer is asked once with guest stars; Edit metadata starts from TMDB's. Fails without the episode fill and without the blank check.
  • TestCreditsKeptWithoutOverviewsAreDueOnce (new): credits kept without overviews are due, a page reads them again once and shows TMDB's overview. Fails when kept rows without overviews are not due.
  • TestAnEpisodeFallsBackToItsSeriesOriginalLanguage (new): an episode with no French nor English overview shows the one in its series' original language, that season asked once. Fails when the episode's original language is dropped.
  • TestWithoutAKeyTMDBIsAskedNoOverview (new): no request without a key; the overviews show once a key is set, and hide again without asking once it is taken off. Fails when the fill ignores the key.
  • TestListingsAskTMDBNoOverview (new): library children, Items and episode lists ask TMDB for no overview and show none; the page then does. Fails when an episode list fills overviews, and without the page's fill.
  • TestBlankTextsInALanguageLeaveTheServers (new): blank name, overview and episode texts of a description in the user's language leave the server's. Fails with the former empty-only check.
  • TestTitleDetailsGiveTheOverviewsOfEveryLanguage, TestOverviewsInTheFirstLanguageTMDBHasOneIn, TestAnEpisodesOverviewIsReadInALanguage (new, tmdb): translations read from the details request, blank ones left out; the language and region preference; an episode's overview shares the guest stars' answer. Fail without translations appended and without the US preference for English.
  • TestAMoviesCreditsAreItsBilledCastAndCrew (tmdb): its pinned details request now appends translations.

A movie, series or episode whose descriptions give no overview showed
none, even with a TMDB key. With a key, its page now shows TMDB's: in
the user's metadata language, else English, else the title's original
language.

A movie's or series' overviews come with its credits: translations are
appended to the one request of its details and kept in title_credits, so
they cost no request of their own; credits kept before are read again
once, at a page or in the next pass. An episode's come from its season's
answer in a language, kept in memory; English is the answer its guest
stars read, so a season costs at most one request per other language.
Listings show the descriptions' overviews only and ask TMDB nothing.
Edit metadata starts from TMDB's overview, so saving the editor
unchanged keeps following TMDB.

Text of nothing but spaces and direction marks now counts as none: a
title's or episode's overview, and every text a description in the
user's language gives.
Addons tells the order an overview is taken in, what it costs per title
opened, that blank texts count as none, and how Jellyfin differs;
Getting started lists overviews among what a TMDB key adds.
@moodiness
moodiness marked this pull request as ready for review December 5, 2026 03:57
@moodiness
moodiness merged commit e2a3ca8 into main Dec 5, 2026
84 of 85 checks passed
@moodiness
moodiness deleted the feat/overview-fallback branch December 5, 2026 04:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant