Kometa metadata
Kometa (formerly Plex Meta Manager) sets titles and artwork in a Plex library from YAML files. This route generates the file for a Formula 1 library: it gives every season, every round and every session of a weekend its artwork, all of it rendered by this API.
What it is for
In a Formula 1 library as Kometa’s Formula 1 builder shapes it:
- each F1 season is one show, titled like the file’s keys (
Season 2024); - each round of that season is a Plex season of the show;
- each session of the race weekend is an episode.
f1_season lets Kometa name the rounds and episodes from that year’s schedule. The file adds the
artwork: the show gets the season poster, each round its race poster, and each episode
its session thumbnail. It covers every season from 1950 to next year; Kometa skips a show or a round the library
does not hold.
f1_season | The year the show holds; Kometa’s Formula 1 builder reads its schedule. |
|---|---|
round_prefix: true | Puts the round number in front of each round’s name. |
shorten_gp: true | Shortens “Grand Prix” to “GP” in the names. |
url_poster (show) | /posters/season/{season}.png |
seasons.{round}.url_poster | /posters/race/{race name}/{season}.png |
episodes.{n}.url_poster | /posters/session/{race name}/{season}/{session}.png, numbered as on the posters page: 10 episodes for a standard weekend, 15 for a sprint weekend. |
Using it in Kometa
Point the library at the file’s URL in Kometa’s config.yml; Kometa fetches it on every run:
The poster addresses inside the file use the public name the service is served under, so Plex can fetch them.
The answer is text/yaml and may be cached for an hour (Cache-Control: public, max-age=3600).
The file
/kometa/formula-1-metadata.yml. The server builds it from the Jolpica schedule of every season; the
first call after a restart takes several seconds.