Skip to content
🚧 These docs are a work in progress and may contain inaccuracies. Content is being actively reviewed and validated.

Metadata Providers

Dubby enriches your media with artwork, descriptions, cast & crew, and genre information from external metadata providers.

TMDB is the primary metadata provider. It supplies:

  • Posters — Portrait artwork (2:3 ratio)
  • Backdrops — Landscape artwork (16:9 ratio)
  • Logos — Transparent title treatments
  • Descriptions — Plot overviews in multiple languages
  • Cast & crew — Actors, directors, writers with profile photos
  • Genres — Genre classifications
  • Ratings — Content ratings and audience scores
  • Release dates — Per-country release information
  1. Create a free account at themoviedb.org
  2. Go to Settings > API in your TMDB account
  3. Request an API key (select “Developer” for personal use)
  4. Copy the API Key (v3 auth) value

Set the API key via environment variable:

Terminal window
TMDB_API_KEY=your-api-key-here

Or configure it in the Dubby admin UI under Settings > Metadata. The UI-configured value is stored in the database and takes effect immediately without restarting.

During a library scan, each media item goes through a matching process:

  1. Parse the filename to extract title and year
  2. Search TMDB for the title (with year as a filter when available)
  3. Select the best match based on title similarity and year proximity
  4. Download artwork, descriptions, and metadata
StatusMeaning
matchedSuccessfully matched to a TMDB entry
pendingWaiting to be matched (queued)
pending_retryMatch failed temporarily, will retry
unmatchedNo match found — requires manual matching
manualManually matched by an admin

Unmatched items appear in the admin dashboard for manual resolution. You can search TMDB and select the correct match.

TMDB images are downloaded and cached locally on the server. This means:

  • Fast loading for all clients (no external CDN dependency)
  • Images survive if TMDB is temporarily unavailable
  • Consistent URLs for all clients

Images are cached in DUBBY_METADATA_CACHE_DIR (defaults to DUBBY_DATA_DIR/images).

The server provides multiple sizes for each image type:

SizeUse case
smallThumbnails, list views
mediumGrid cards, search results
largeDetail pages, hero sections
originalFull resolution source

Clients request the appropriate size for their display context.

Admins can select alternative artwork for any media item:

  1. Open the media item’s detail page
  2. Click the artwork to open the image picker
  3. Browse available images from TMDB
  4. Select your preferred poster, backdrop, or logo
  5. Reset to the provider default at any time

Admins can manually edit metadata fields for any media item:

  • Title and sort title
  • Overview/description
  • Year
  • Genres
  • Content rating

Manual edits are preserved across library rescans. A full scan refreshes provider data but won’t overwrite manual edits.

To update metadata from providers:

  • Single item — Use the “Refresh metadata” option on the item’s detail page
  • Full library scan — Triggers a metadata refresh for all items in the library

Metadata refresh is rate-limited to respect TMDB’s API limits.