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
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
Get started
Install and build
Compile from source with Cargo or Just, or cross-compile a static Linux binary.
Get started
Quick start
Build a populated database and images folder under ./output on your desktop.
Guides
Run it on a Kodi box
Deploy to CoreELEC, LibreELEC, or OpenELEC and run both crawlers as systemd services.
Overview
How it works
The crawl order, the batch writer, and how images get Kodi's cache filenames.
Reference
Command-line options
Every flag, its environment variable, and its default on each platform.
Reference
Just recipes
Test, lint, build for each target, package Docker images, and check prose.
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 asmovie,tvshow,season,episode,person,castmember, andart.Textures13.dband 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.