People put the posters in their own libraries (one in an automated F1 library in Emby), and the only help was the Kometa example page, written for developers. The guides are for people who are not: numbered steps of one action each, the exact menus and buttons of Plex, Kometa and Emby as their own documentation names them, boxes to copy, the pictures from the live API, what to see after a step and what to do when it does not work. The technical details (routes, options, the address version, a script and Emby's API) sit at the end of each. guides/ holds the index, plex.html (a Plex TV library on the Personal Media Shows agent, Kometa pointed at /kometa/formula-1-metadata.yml, its daily run) and emby.html (Kometa needs Plex, so: Set Image from URL by hand, or picture files named as Emby's TV naming page reads them, and a script that saves a whole season from the Kometa file). They use the example site's style sheet; every example page's nav links them, and README.md lists them. cdn-api.py serves guides/ at /guides/ beside /examples/, and the image copies it. A mount of a directory the image lacks stops the service at its start, so tests/test_image.py holds that every directory the app serves is copied by service/Dockerfile.
261 lines
16 KiB
HTML
261 lines
16 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>Using the posters in Plex · Guides · F1 Circuits</title>
|
|
<meta name="description" content="Step by step: give every season, race weekend and session of your Formula 1 library in Plex its poster or thumbnail, set by Kometa from the F1 Circuits file.">
|
|
<link rel="icon" href="data:,">
|
|
<link rel="stylesheet" href="../examples/site.css">
|
|
</head>
|
|
<body>
|
|
<header class="site">
|
|
<a class="brand" href="../examples/index.html">F1 <span>Circuits</span> API</a>
|
|
<nav aria-label="Guides">
|
|
<a href="index.html">Guides</a>
|
|
<a href="plex.html" aria-current="page">Plex</a>
|
|
<a href="emby.html">Emby</a>
|
|
<a href="../examples/index.html">Examples</a>
|
|
</nav>
|
|
</header>
|
|
|
|
<main>
|
|
<h1>Using the posters in Plex</h1>
|
|
<p class="lead">
|
|
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 <a href="https://kometa.wiki/">Kometa</a> puts them there for you, and
|
|
keeps them up to date. This guide takes you through it one step at a time.
|
|
</p>
|
|
|
|
<h2>What you will get</h2>
|
|
<div class="examples-row">
|
|
<figure>
|
|
<img src="https://f1-circuits.zurag.be/posters/season/2025.png?v=a1&width=400&format=jpg"
|
|
alt="The 2025 season poster" loading="lazy">
|
|
<figcaption>The show “Season 2025” gets the season poster.</figcaption>
|
|
</figure>
|
|
<figure>
|
|
<img src="https://f1-circuits.zurag.be/posters/race/Qatar%20Grand%20Prix/2025.png?v=a1&width=400&format=jpg"
|
|
alt="The 2025 Qatar Grand Prix poster" loading="lazy">
|
|
<figcaption>Each race weekend gets its race poster: here round 23, Qatar.</figcaption>
|
|
</figure>
|
|
<figure>
|
|
<img src="https://f1-circuits.zurag.be/posters/session/Qatar%20Grand%20Prix/2025/race.png?v=a1&width=640&format=jpg"
|
|
alt="The thumbnail of the race session of the 2025 Qatar Grand Prix" loading="lazy">
|
|
<figcaption>Each session gets its thumbnail: here the race.</figcaption>
|
|
</figure>
|
|
</div>
|
|
<p>The <a href="../examples/library.html">Library page</a> shows a whole library this way, season by season.</p>
|
|
|
|
<h2>What you need</h2>
|
|
<ul>
|
|
<li>Plex Media Server, and the Plex Web App open in your browser.</li>
|
|
<li>Your Formula 1 videos, in folders as step 1 shows.</li>
|
|
<li>A computer to run Kometa on. It can be the computer Plex runs on. Kometa has no window of its own: you set it
|
|
up by filling in one text file and starting it with one command.</li>
|
|
<li>A free account at <a href="https://www.themoviedb.org/">The Movie Database</a> (TMDb). Kometa always asks for
|
|
its key, even though this guide does not use it.</li>
|
|
</ul>
|
|
|
|
<section class="guide-step">
|
|
<h2><span class="num">1.</span> Put your videos in folders</h2>
|
|
<p>Kometa's <a href="https://kometa.wiki/en/latest/kometa/guides/formula/">Formula 1 guide</a> shapes the library
|
|
like this. Plex calls the levels show, season and episode:</p>
|
|
<ul>
|
|
<li>Every Formula 1 season is a <strong>show</strong>, in a folder named <code>Season 2025</code>. Keep that name:
|
|
the pictures are matched to the show by it.</li>
|
|
<li>Every race weekend is a <strong>season</strong> of that show, in a folder that starts with its round:
|
|
<code>23 - Qatar GP</code>. Plex numbers it by the round.</li>
|
|
<li>Every session is an <strong>episode</strong>: one file, named with the round, the episode number and the
|
|
session, such as <code>23x12 - Qatar GP - Race Session.mkv</code>.</li>
|
|
</ul>
|
|
<pre class="code">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</pre>
|
|
<details class="more">
|
|
<summary>Which episode number is which session</summary>
|
|
<p>The pictures go to the episodes by their number. A sprint weekend has more sessions, so its numbers differ:</p>
|
|
<table>
|
|
<thead><tr><th>Episode</th><th>Standard weekend</th><th>Sprint weekend</th></tr></thead>
|
|
<tbody>
|
|
<tr><td>1</td><td>Free Practice 1</td><td>Free Practice 1</td></tr>
|
|
<tr><td>2</td><td>Free Practice 2</td><td>Pre-Sprint-Qualifying Buildup</td></tr>
|
|
<tr><td>3</td><td>Free Practice 3</td><td>Sprint Qualifying</td></tr>
|
|
<tr><td>4</td><td>Pre-Qualifying Buildup</td><td>Post-Sprint-Qualifying</td></tr>
|
|
<tr><td>5</td><td>Qualifying</td><td>Pre-Sprint Buildup</td></tr>
|
|
<tr><td>6</td><td>Post-Qualifying</td><td>Sprint</td></tr>
|
|
<tr><td>7</td><td>Pre-Race Buildup</td><td>Post-Sprint</td></tr>
|
|
<tr><td>8</td><td>Race</td><td>Pre-Qualifying Buildup</td></tr>
|
|
<tr><td>9</td><td>Post-Race</td><td>Qualifying</td></tr>
|
|
<tr><td>10</td><td>Highlights</td><td>Post-Qualifying</td></tr>
|
|
<tr><td>11</td><td></td><td>Pre-Race Buildup</td></tr>
|
|
<tr><td>12</td><td></td><td>Race</td></tr>
|
|
<tr><td>13</td><td></td><td>Post-Race</td></tr>
|
|
<tr><td>14</td><td></td><td>Highlights</td></tr>
|
|
<tr><td>15</td><td></td><td>Bonus Content</td></tr>
|
|
</tbody>
|
|
</table>
|
|
</details>
|
|
</section>
|
|
|
|
<section class="guide-step">
|
|
<h2><span class="num">2.</span> Make the Formula 1 library in Plex</h2>
|
|
<p>The library needs Plex's <em>Personal Media Shows</em> 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.</p>
|
|
<ol class="steps">
|
|
<li>In the Plex Web App, open <strong>Settings</strong> and choose your server.</li>
|
|
<li>Choose <strong>Library</strong>, turn on <strong>Show Legacy Agent during library set up</strong>, and save
|
|
the change. (An older Plex Media Server does not have this setting and shows the agent anyway.)</li>
|
|
<li>Under <strong>Manage</strong>, choose <strong>Libraries</strong>, then <strong>Add Library</strong>.</li>
|
|
<li>Choose <strong>TV Shows</strong> and name the library, for example <code>Formula 1</code>. Note the exact
|
|
name: you will type it in step 4.</li>
|
|
<li>Add the folder that holds your season folders (<code>Formula 1</code> in the example above).</li>
|
|
<li>Choose <strong>Advanced</strong>, and under <strong>Agent</strong> choose
|
|
<strong>Personal Media Shows (Legacy)</strong>.</li>
|
|
<li>Finish adding the library.</li>
|
|
</ol>
|
|
<p class="see">You should see: one show per season folder, such as “Season 2025”, and inside it one season per race
|
|
weekend.</p>
|
|
<p class="hint">Already have a Formula 1 library with another agent? Plex's
|
|
<a href="https://support.plex.tv/articles/200241558-agents/">page on agents</a> shows how to change it, and says
|
|
the change applies only to videos added after it.</p>
|
|
</section>
|
|
|
|
<section class="guide-step">
|
|
<h2><span class="num">3.</span> Install Kometa</h2>
|
|
<ol class="steps">
|
|
<li>Open Kometa's <a href="https://kometa.wiki/en/latest/kometa/install/">installation walkthrough</a> and choose
|
|
the computer you will run it on. Kometa recommends its Docker version unless you already use Python.</li>
|
|
<li>Follow it until it asks for three things, and gather them as it says:
|
|
<ul>
|
|
<li><strong>Your Plex address</strong>: the address that computer uses to reach Plex directly, such as
|
|
<code>http://192.168.1.12:32400</code>. Not app.plex.tv.</li>
|
|
<li><strong>Your Plex token</strong>, a password for programs: in the Plex Web App, open any video's
|
|
<strong>⋯</strong> menu, choose <strong>Get Info</strong>, then the <strong>XML</strong> link at the bottom
|
|
(<a href="https://support.plex.tv/articles/204059436-finding-an-authentication-token-x-plex-token/">Plex's
|
|
page</a>). The token is the part after <code>X-Plex-Token=</code> in the address of the page that opens.</li>
|
|
<li><strong>Your TMDb key</strong>: sign in at themoviedb.org, open <strong>Settings</strong> from your account
|
|
menu, choose <strong>API</strong> and request a key. If it shows two keys, use the v3 one.</li>
|
|
</ul>
|
|
</li>
|
|
<li>Make the file <code>config.yml</code> as the walkthrough shows, with your Plex address, Plex token and TMDb
|
|
key in it. Then come back here for its <code>libraries</code> part.</li>
|
|
</ol>
|
|
</section>
|
|
|
|
<section class="guide-step">
|
|
<h2><span class="num">4.</span> Point Kometa at the Formula 1 file</h2>
|
|
<p>One file on this site tells Kometa which picture goes on which season, race weekend and session, for every
|
|
season from 1950 on.</p>
|
|
<ol class="steps">
|
|
<li>Open <code>config.yml</code> in a plain text editor, such as Notepad on Windows or TextEdit on a Mac.</li>
|
|
<li>Replace its <code>libraries:</code> part with the lines below. If it already lists libraries of your own,
|
|
keep them and add the <code>Formula 1:</code> lines under them.
|
|
<div class="copy"><code>libraries:
|
|
Formula 1:
|
|
metadata_files:
|
|
- url: https://f1-circuits.zurag.be/kometa/formula-1-metadata.yml</code></div>
|
|
</li>
|
|
<li>Change <code>Formula 1</code> to your library's exact name in Plex, if you named it otherwise.</li>
|
|
<li>Keep the spaces at the start of each line as shown: two per level. Kometa reads the levels from them.</li>
|
|
<li>Save the file. The <code>plex:</code> and <code>tmdb:</code> parts stay as you filled them in.</li>
|
|
</ol>
|
|
</section>
|
|
|
|
<section class="guide-step">
|
|
<h2><span class="num">5.</span> Run Kometa once</h2>
|
|
<p>Type the command for the way you installed Kometa, in the window the walkthrough had you use:</p>
|
|
<ul>
|
|
<li>Kometa with Python, from its folder:
|
|
<div class="copy"><code>uv run python kometa.py --run</code></div></li>
|
|
<li>Kometa with Docker (put the full path of the folder that holds <code>config.yml</code> in place of
|
|
<code>FULL_PATH_TO_CONFIG</code>):
|
|
<div class="copy"><code>docker run --rm -it -v "FULL_PATH_TO_CONFIG:/config:rw" kometateam/kometa --run</code></div></li>
|
|
<li>Kometa with Docker Compose, from the folder that holds <code>compose.yml</code>:
|
|
<div class="copy"><code>docker compose run --rm kometa --run</code></div></li>
|
|
</ul>
|
|
<p>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.</p>
|
|
<p class="see">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.</p>
|
|
</section>
|
|
|
|
<section class="guide-step">
|
|
<h2><span class="num">6.</span> Keep it up to date</h2>
|
|
<p>Leave Kometa running in its normal way, without <code>--run</code>: the part “Scheduling and updates” of the
|
|
<a href="https://kometa.wiki/en/latest/kometa/install/">walkthrough</a> 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.</p>
|
|
<p>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.</p>
|
|
</section>
|
|
|
|
<h2>If it doesn't work</h2>
|
|
<ul>
|
|
<li><strong>Nothing changed in Plex.</strong> Open the newest <code>meta.log</code> in the <code>logs</code> folder
|
|
next to <code>config.yml</code>, and read the lines marked CRITICAL, then ERROR.</li>
|
|
<li><strong>Kometa does not work on the library.</strong> The name under <code>libraries:</code> must be the
|
|
library's name in Plex, letter for letter.</li>
|
|
<li><strong>A season gets no pictures.</strong> Its show must be called exactly <code>Season 2025</code> (with its
|
|
own year) in Plex.</li>
|
|
<li><strong>A race poster sits on the wrong race weekend.</strong> In Plex, each race weekend's season number must be
|
|
its round. Check the number at the start of its folder.</li>
|
|
<li><strong>A thumbnail sits on the wrong session.</strong> Check the episode numbers against the table in step 1:
|
|
a sprint weekend is numbered differently from a standard one.</li>
|
|
<li><strong>Pictures stay empty.</strong> Plex fetches every picture from this site, so the computer Plex runs on
|
|
must reach <code>https://f1-circuits.zurag.be</code>. Open
|
|
<a href="https://f1-circuits.zurag.be/posters/season/2025.png?v=a1">a poster</a> in a browser on that computer to
|
|
check.</li>
|
|
<li>Kometa's own <a href="https://kometa.wiki/en/latest/kometa/help/">help page</a> explains its messages.</li>
|
|
</ul>
|
|
|
|
<h2>For the technically minded</h2>
|
|
<ul>
|
|
<li>The file is <a href="https://f1-circuits.zurag.be/kometa/formula-1-metadata.yml">/kometa/formula-1-metadata.yml</a>,
|
|
a Kometa metadata file, explained on the <a href="../examples/kometa.html">Kometa page</a>. Per show
|
|
(<code>"Season 2025"</code>) it sets <code>f1_season</code>, <code>round_prefix</code>, <code>shorten_gp</code>
|
|
and the season poster as <code>url_poster</code>; per season of the show (a round) the race poster; per episode
|
|
the session thumbnail. It covers every season from 1950 to next year; Kometa skips what the library does not
|
|
hold. The first request after the service starts can take minutes: it reads every season's schedule from
|
|
Jolpica.</li>
|
|
<li>Every address in it carries the address version, <code>?v=a1</code>. Such an address is kept by clients for
|
|
good; the version is raised when the look changes, which gives every picture a new address. Kometa (with its
|
|
cache on, the default) sets a poster only when its address differs from the one it set last, so the raise is
|
|
what brings a new look in.</li>
|
|
<li>The pictures are three routes, each a plain <code>GET</code>:
|
|
<code>/posters/season/{season}.png</code>, <code>/posters/race/{race name}/{season}.png</code> and
|
|
<code>/posters/session/{race name}/{season}/{session}.png</code>. A race name is Jolpica's, with its spaces and
|
|
other characters encoded: <code>Qatar%20Grand%20Prix</code>, <code>S%C3%A3o%20Paulo%20Grand%20Prix</code>.</li>
|
|
<li>They take options such as <code>style=minimal</code>, <code>bg=photo</code>, <code>width=600</code> and
|
|
<code>format=jpg</code>. Try every option in the <a href="../examples/builder.html">poster builder</a>; all of
|
|
them are listed in the <a href="https://f1-circuits.zurag.be/docs">API reference</a>. The file uses the default
|
|
look. For another look, save a copy of the file, add your options to its addresses, and give Kometa that copy
|
|
with a <code>- file:</code> line in place of the <code>- url:</code> line
|
|
(<a href="https://kometa.wiki/en/latest/config/files/">Kometa's page on files</a>); your copy then no longer
|
|
takes in new races by itself.</li>
|
|
</ul>
|
|
</main>
|
|
|
|
<footer class="pager">
|
|
<a rel="prev" href="index.html">← Guides</a>
|
|
<span class="home"></span>
|
|
<a rel="next" href="emby.html">Emby →</a>
|
|
</footer>
|
|
<footer class="disclaimer">
|
|
<p>This website is unofficial and is not associated in any way with the Formula 1 companies. F1, FORMULA ONE,
|
|
FORMULA 1, FIA FORMULA ONE WORLD CHAMPIONSHIP, GRAND PRIX and related marks are trade marks of Formula One
|
|
Licensing B.V.</p>
|
|
<p><a href="../examples/licences.html">Licences and credits</a>: every source the pictures are made from, the licence each
|
|
picture takes from its sources, and the licence of the track files and the GPS traces (MIT).</p>
|
|
</footer>
|
|
<script src="guides.js"></script>
|
|
</body>
|
|
</html>
|