F1 Circuits API

Using the posters in Plex

Plex can show your Formula 1 library with a poster for every season, a poster for every race weekend and a picture for every session. A free helper called Kometa puts them there for you, and keeps them up to date. This guide takes you through it one step at a time.

What you will get

The 2025 season poster
The show “Season 2025” gets the season poster.
The 2025 Qatar Grand Prix poster
Each race weekend gets its race poster: here round 23, Qatar.
The thumbnail of the race session of the 2025 Qatar Grand Prix
Each session gets its thumbnail: here the race.

The Library page shows a whole library this way, season by season.

What you need

1. Put your videos in folders

Kometa's Formula 1 guide shapes the library like this. Plex calls the levels show, season and episode:

Formula 1                                       ← the library's folder
└── Season 2025                                 ← a show: the 2025 season
    ├── 01 - Australian GP                      ← a season of the show: round 1
    │   ├── 01x01 - Australian GP - Free Practice 1.mkv
    │   ├── 01x05 - Australian GP - Qualifying Session.mkv
    │   └── 01x08 - Australian GP - Race Session.mkv
    └── 23 - Qatar GP                           ← round 23, a sprint weekend
        ├── 23x06 - Qatar GP - Sprint Race Session.mkv
        └── 23x12 - Qatar GP - Race Session.mkv
Which episode number is which session

The pictures go to the episodes by their number. A sprint weekend has more sessions, so its numbers differ:

EpisodeStandard weekendSprint weekend
1Free Practice 1Free Practice 1
2Free Practice 2Pre-Sprint-Qualifying Buildup
3Free Practice 3Sprint Qualifying
4Pre-Qualifying BuildupPost-Sprint-Qualifying
5QualifyingPre-Sprint Buildup
6Post-QualifyingSprint
7Pre-Race BuildupPost-Sprint
8RacePre-Qualifying Buildup
9Post-RaceQualifying
10HighlightsPost-Qualifying
11Pre-Race Buildup
12Race
13Post-Race
14Highlights
15Bonus Content

2. Make the Formula 1 library in Plex

The library needs Plex's Personal Media Shows agent. An agent is the part of Plex that looks up titles and pictures; this one does not look your videos up on the internet, which suits recordings no online database lists. Since Plex Media Server 1.43.0, Plex hides it when you make a new library unless one setting is on.

  1. In the Plex Web App, open Settings and choose your server.
  2. Choose Library, turn on Show Legacy Agent during library set up, and save the change. (An older Plex Media Server does not have this setting and shows the agent anyway.)
  3. Under Manage, choose Libraries, then Add Library.
  4. Choose TV Shows and name the library, for example Formula 1. Note the exact name: you will type it in step 4.
  5. Add the folder that holds your season folders (Formula 1 in the example above).
  6. Choose Advanced, and under Agent choose Personal Media Shows (Legacy).
  7. Finish adding the library.

You should see: one show per season folder, such as “Season 2025”, and inside it one season per race weekend.

Already have a Formula 1 library with another agent? Plex's page on agents shows how to change it, and says the change applies only to videos added after it.

3. Install Kometa

  1. Open Kometa's installation walkthrough and choose the computer you will run it on. Kometa recommends its Docker version unless you already use Python.
  2. Follow it until it asks for three things, and gather them as it says:
    • Your Plex address: the address that computer uses to reach Plex directly, such as http://192.168.1.12:32400. Not app.plex.tv.
    • Your Plex token, a password for programs: in the Plex Web App, open any video's ⋯ menu, choose Get Info, then the XML link at the bottom (Plex's page). The token is the part after X-Plex-Token= in the address of the page that opens.
    • Your TMDb key: sign in at themoviedb.org, open Settings from your account menu, choose API and request a key. If it shows two keys, use the v3 one.
  3. Make the file config.yml as the walkthrough shows, with your Plex address, Plex token and TMDb key in it. Then come back here for its libraries part.

4. Point Kometa at the Formula 1 file

One file on this site tells Kometa which picture goes on which season, race weekend and session, for every season from 1950 on.

  1. Open config.yml in a plain text editor, such as Notepad on Windows or TextEdit on a Mac.
  2. Replace its libraries: part with the lines below. If it already lists libraries of your own, keep them and add the Formula 1: lines under them.
    libraries: Formula 1: metadata_files: - url: https://f1-circuits.zurag.be/kometa/formula-1-metadata.yml
  3. Change Formula 1 to your library's exact name in Plex, if you named it otherwise.
  4. Keep the spaces at the start of each line as shown: two per level. Kometa reads the levels from them.
  5. Save the file. The plex: and tmdb: parts stay as you filled them in.

5. Run Kometa once

Type the command for the way you installed Kometa, in the window the walkthrough had you use:

Kometa writes what it does as it goes. Let it finish: the first time it sets a picture on every season, race weekend and session it finds, so it takes a while.

You should see: Kometa connect to TMDb and to Plex, work through your Formula 1 library, and end. In Plex, after reloading the page, every season, race weekend and session has its picture.

6. Keep it up to date

Leave Kometa running in its normal way, without --run: the part “Scheduling and updates” of the walkthrough shows how for your installation. Then it runs by itself once a day, at 05:00 unless you change it. Each time it reads the Formula 1 file again, so a new race weekend gets its pictures.

When the pictures get a new look, the file names new addresses for them, and Kometa puts the new pictures in on its next run. A picture it has already put in is not sent again. To get a new look at once, run step 5 again.

If it doesn't work

For the technically minded