warmup-rs docs · v0.1
Source

TMDBHelper cache builder · Rust

A full TMDBHelper cache,
built without Kodi.

warmup-rs crawls TMDB and writes the same rows TMDBHelper writes, straight into SQLite. Run it on a desktop to build a ready-made ItemDetails.db and images folder, or on a CoreELEC box to keep Kodi's own caches warm.

  • One static binary
  • Restart-safe crawls
  • Kodi-compatible image cache
  • GPL v3 or later
illustration · one run on a desktop
  Seeded 1,840 trending titles
 Crawled movie 603  credits
 Crawled person 6384
   Wrote 200 items 1 commit
  Hashed poster    CRC-32
   Saved images/d/d4c8e2f1.jpg
 Skipped 12 cached images
    Done ItemDetails.db

Start here

What it does

TMDBHelper is a Kodi add-on that shows movie, TV, and people pages from TMDB. It caches what it fetches in two places:

  • ItemDetails.db, TMDBHelper's metadata cache of about 30 tables, such as movie, tvshow, season, episode, person, castmember, and art.
  • Textures13.db and the thumbnails folder, Kodi's image cache, so artwork shows without a download.

Filling those caches through Kodi is slow, because every item goes through the Python add-on and JSON-RPC. warmup-rs skips that layer. It asks TMDB for everything about an item in one request, writes the rows TMDBHelper expects, and commits them in large batches. On a 4-core ARM box with a USB 3.0 SSD, it warms about 40 metadata items and 45 images a second.

Where it writes

warmup-rs picks its default paths from the system it runs on:

System Databases Images
Windows, macOS, or desktop Linux ./output ./output/images
CoreELEC, LibreELEC, or OpenELEC Kodi's addon_data folder and /var/media/CACHE_DRIVE/tmdb /var/media/CACHE_DRIVE/tmdb/Thumbnails

On a desktop, warmup-rs creates the output folder and an empty ItemDetails.db from TMDBHelper's schema, so you don't need Kodi or the add-on installed. Copy the results to a Kodi device when the crawl finishes. See Command-line options for every path.