13 Commits
Author SHA1 Message Date
mesh-tools ab1e4342cb Merge pull request 'Guide Plex and Emby users step by step to the posters, at /guides/' (#12) from docs/guides into master 2026-11-30 11:48:21 +00:00
jschoubben c7753af419 Use a documentation address for the example Plex server 2026-11-30 12:47:36 +01:00
jschoubben 09a83f6ad9 Guide Plex and Emby users step by step to the posters, at /guides/
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.
2026-11-30 12:46:36 +01:00
mesh-tools 8754f64f80 Merge pull request 'Season posters: a free photo of each season's car, matched to the operator's curated cars' (#11) from feat/season-picks into master 2026-11-30 10:51:58 +00:00
jschoubben e5874f2d9f Key a finished picture by the credit it draws
A finished picture's key named its route, its options and its layers' keys, but not the credit
it draws from a pick. A pick whose author or licence changed while its file stayed the same kept
its photo layer's key, so the stored picture was served again with the old credit drawn on it,
while X-Credits already said the new one (seen locally for 1967, whose author lost Commons'
"upload by" appendix).

finished_key now also takes every text the picture draws from a pick: the credit of each layer
made from a pick's photo (Layer.from_pick, season and layout picks alike). A map's credit follows
its source, which its layer key already names. A picture drawn from no pick adds nothing to the
digest, so its key is the one it had: no kept race, session or pick-less season picture is drawn
again. Seen locally with the old store in place: the race poster, the session thumbnail and the
season poster with bg=none came from the store under their old keys; the 1967 and 1989 season
posters were drawn once under new keys. No release of master ever held a photo pick (neither
seasons/photos.json nor circuits/photos.json), so the running service keeps no picture whose key
changes.

The keys test: the same photo with another credit makes another key (on the old code finished_key
takes no credit; with the credit ignored the keys are equal), and a picture drawn from no pick
keeps the digest of render version, route, options and layer keys it had.

Builds: docs/posters.md at f6b9f937d0 (Finished images: the key names the credit of each layer drawn from a pick; Principles, 2: a changed input makes a new key)

Claude-Session: https://claude.ai/code/session_01JG73KFhbaNj3tyJ8tKmE3W
2026-11-30 11:33:56 +01:00
jschoubben 25fee9ca85 Give the addresses an address version of their own, raised to a1
Every season poster changed with the joined picks, but the Kometa file kept handing out
?v=r3, an address clients keep for good: they would never load the new season posters. Raising
the render version instead would draw every kept layer and finished picture again, though only
the season posters changed.

poster_options.ADDRESS_VERSION ("a1") sits beside RENDER_VERSION: the Kometa file writes it into
every poster address, and only an address carrying it is sent the immutable Cache-Control; an
address with ?v=r3 is now any other address (a day, then its ETag). Layers and finished pictures
stay keyed by RENDER_VERSION, still r3, so nothing kept is drawn again except the season posters
whose photo changed. The API's option text, the Kometa docstring and the README say "address
version".

The options test: ?v=a1 is kept for good, ?v=r3 no longer (on master it fails: no
ADDRESS_VERSION, and ?v=r3 is still the immutable address).

Builds: docs/posters.md at f6b9f937d0 (Finished images: what clients keep, the address version)

Claude-Session: https://claude.ai/code/session_01JG73KFhbaNj3tyJ8tKmE3W
2026-11-30 11:33:56 +01:00
jschoubben ab0c4b9244 Join the season photo picks: every season from 1950 to 2026 matched to its curated car
seasons/photos.json held only its note, so every season poster was drawn without a photo. It now
holds the 77 picks made by the curated car of each season (three runs: 1950-1975, 1976-2000,
2001-2026), keyed in year order. Licence, author and date of each were read from Commons' own
metadata. Where that date cannot be when the photo was taken, the entry says where its date
comes from: 1978, 1984, 1988 and 1991 from the description (Commons gives a scan or upload
date); 1989 the upload's month, 2012-08 (Commons' 2013-08-21 is the camera's clock, after the
upload of 2012-08-28, and neither the description, whose 1989 is the car's year, nor a category
says when it was taken). 1967's author is the photographer as Commons names him on his other
files, "edvvc from London, UK", without the uploader Commons' Artist field appends. The $comment
says where a candidate comes from, the match order and date_from's three values.

seasons/picks.md is the table of picks the design names: one row per season, newest first, the
curated car named and described (never its photo, never where it is kept), the picked file, its
licence, the match and why, joined from the three runs' tables. 1957, 1975 and 1977 are not in
their season's cars category (searched as the candidates tool searches it, and their own
categories walked up): their rows say they were found by a search for the car by name. Five
seasons are not the same car: 1952 (the champion's car), 1967, 2023 and 2026 (the same team's
car of that season), 1971 (the same model in the livery it raced that season).

The tests read both files as the service does: every season 1950-2026 written in year order and
accepted by poster_sources' reader, each date_from one of the design's three; the table names
every picked season newest first, with the file and licence of seasons/photos.json and one of the
design's four matches (on master both fail: no season is picked, no table). The licence test
gains CC BY-SA 2.5 and the three ported licences the picks use (2.0 de, 3.0 de, 3.0 nl): free,
and the picture CC BY-SA 4.0; pick_share's docstring names them. The reader does not check
date_from, so it needs no change for "upload".

Builds: docs/posters.md at f6b9f937d0 (Season posters: each season's photo is matched to the curated car, the table of picks seasons/picks.md; Picking photos: the name search said in the pick's row, date and date_from, the ported CC BY-SA licences; Licences, stated: 2.5 and the ported licences)

Claude-Session: https://claude.ai/code/session_01JG73KFhbaNj3tyJ8tKmE3W
2026-11-30 11:33:56 +01:00
jschoubben f6b9f937d0 Write the lead's answers on the season photos into the design
The season photos are matched to the operator's curated cars (77 seasons, 1950-2026), and the
picks raised questions the design did not answer. The lead's answers of 2026-11-30:

- Season posters: each season's photo is matched to the curated car of that season, in order the
  same car, the same model in a livery it raced that season, the same team's car of that season,
  that season's champion car; a curated photo of another year's car gives way to that season's
  car; the table of picks, seasons/picks.md, names the match per season.
- Picking photos: tools/commons_candidates.py lists a season's candidates from its "<year>
  Formula One season cars" category; where that category holds no free photo of the curated car,
  the person or session picking searches Commons for that car by name, and the pick's row in
  seasons/picks.md says so (no part runs the search: every season is picked).
- An entry's date is when the photo was taken. Where the date Commons gives cannot be (a scan, an
  upload, a camera clock never set, a date after the file's upload), the date its description or
  category gives, marked "date_from"; where neither says, the month of the file's upload, the
  latest it can have been taken, marked "upload" (a true bound, not a date nobody measured).
- The ported CC BY-SA licences (2.0 de, 3.0 de, 3.0 nl) are free like their unported versions and
  give the picture CC BY-SA 4.0; the licences list names them, and 2.5 beside 2.0 and 3.0 (it
  also allows a later version with the same elements).
- Finished images: a finished picture's key also names the credit of each layer drawn from a
  pick, so a pick's changed credit makes a new key (principle 2: a changed input makes a new key).
- What clients keep: the address carries an address version of its own (?v=), separate from the
  render version that keys kept layers and finished pictures; raised when a look changes, so
  clients load it again from the pictures already kept. Raised now to a1 because every season
  poster changed; the render version stays r3.

The season photos leave "Not in this change".

Claude-Session: https://claude.ai/code/session_01JG73KFhbaNj3tyJ8tKmE3W
2026-11-30 11:33:50 +01:00
mesh-tools 072bbcc023 Merge pull request 'Draw Madring's track: take upstream's GPS trace instead of a point' (#10) from fix/madring-trace into master 2026-11-30 09:25:41 +00:00
jschoubben 82a0efabbc Fail the merge check on a point trace for a current race
Madring's point trace reached the 2026 poster unnoticed: nothing held that a layout a race draws
has a traced line. tests/test_traces.py takes every layout the service picks for a season from
2020 to next season (find_layout_slug_for_year over circuits.json, the data the posters draw
from) and fails each whose trace is not a LineString of more than ten points. On master it fails
on spain/madrid/madring/2026- alone; here it passes for all 35.

Builds: docs/posters.md at 8834df45e6 (Layers: no current race draws a layout without a traced line)

Claude-Session: https://claude.ai/code/session_01JG73KFhbaNj3tyJ8tKmE3W
2026-11-30 10:20:48 +01:00
jschoubben 613103e670 Take upstream's re-traced Baku, Miami and Las Vegas traces
Our three files were word-for-word copies of the dataset's traces as they stood in May 2025;
the dataset (bacinger/f1-circuits, MIT) has re-traced all three since: Las Vegas on 2025-07-12 to
2025-08-05 (56 to 100 points, our line up to about 70 m off the new one, length 6116 to 6201),
Miami on 2025-07-29 (109 to 103 points, within 7 m) and Baku on 2025-07-24 and 2026-10-16 (86
points, within 11 m). A newer upstream trace of a circuit already drawn is a plain update: each
is taken word for word, as Madring's, and its SVG and PNG drawn again the same way.

Builds: docs/posters.md at 8834df45e6 (Sources: the traces follow upstream; Layers: track outline points)

Claude-Session: https://claude.ai/code/session_01JG73KFhbaNj3tyJ8tKmE3W
2026-11-30 10:20:43 +01:00
jschoubben 9da882dd73 Draw Madring's track: take the upstream GPS trace instead of a point
The 2026 Spanish race poster showed Madrid with no track, because Madring's trace was a single
point and docs/posters.md (Layers) draws such a layout at its location without a track. The
dataset our traces come from (bacinger/f1-circuits, MIT) traced it on 2025-06-11 as
circuits/es-2026.geojson: a LineString of 116 points, length 5474. It is taken word for word, in
the form of every other trace here (two-space JSON, upstream's id es-2026 and properties).

The SVG is drawn again by generate_svgs.py (TrackLayout.save_svg), the PNG by
circuits/svg-generator.py's Circuit.plot saved transparent with a tight box, as every other PNG
here; both replace the ones drawn from the Wikimedia path. A new trace makes new layer keys,
so no kept poster of Madring is served again.

Upstream's MIT notice is copied word for word with it, as upstream's LICENSE.md holds it since
78726e6 (2025-06-11, the day Madring was traced): "Copyright (c) 2019-2025 Tomislav Bacinger",
in LICENSE.md and in README.md's licence line.

Builds: docs/posters.md at 8834df45e6 (Sources: the traces follow upstream; Layers: track outline points)

Claude-Session: https://claude.ai/code/session_01JG73KFhbaNj3tyJ8tKmE3W
2026-11-30 10:20:37 +01:00
jschoubben 8834df45e6 Write the lead's answers on the circuits' traces into the design
The operator's symptom of 2026-11-30: the 2026 Spanish race poster draws no track, because
Madring's trace is a point. The lead's answers of 2026-11-30 to the questions it raised: a
layout's trace is upstream's newest trace of that circuit (bacinger/f1-circuits), copied once
word for word and never fetched at run time, and a newer upstream trace of a circuit already
drawn is taken as a plain update; the merge check holds that every layout
find_layout_slug_for_year chooses for a season from 2020 on has a LineString trace of more than
10 points (tests/test_traces.py). "Not in this change" now names what remains: three layouts
with an empty trace, Bahrain's offset, and Donington, a copy of Aintree's trace.

Claude-Session: https://claude.ai/code/session_01JG73KFhbaNj3tyJ8tKmE3W
2026-11-30 10:20:26 +01:00
42 changed files with 2794 additions and 686 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
Copyright (c) 2019-2024 Tomislav Bacinger Copyright (c) 2019-2025 Tomislav Bacinger
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal
+12 -4
View File
@@ -50,6 +50,13 @@ A race is named as [Jolpica](https://github.com/jolpica/jolpica-f1) (the Ergast
its schedule, and its circuit is found by Jolpica's circuit id (`ergastId` in `circuits.json`), never by the its schedule, and its circuit is found by Jolpica's circuit id (`ergastId` in `circuits.json`), never by the
circuit's name: Jolpica renames circuits (Losail became Lusail), the id stays. circuit's name: Jolpica renames circuits (Losail became Lusail), the id stays.
## Guides
Step-by-step guides for putting the posters in a media server, on the site at https://f1-circuits.zurag.be/guides/:
* [Plex](guides/plex.html), with Kometa: https://f1-circuits.zurag.be/guides/plex.html
* [Emby](guides/emby.html), by hand or as picture files: https://f1-circuits.zurag.be/guides/emby.html
## The data ## The data
`circuits/circuits.json` holds country → locality → circuit → layout. A circuit has its `name`, its Jolpica `circuits/circuits.json` holds country → locality → circuit → layout. A circuit has its `name`, its Jolpica
@@ -159,7 +166,7 @@ layers, at most 2 GB, the least recently used going first; a second season of a
and fetches nothing. A picture whose map or photo did not arrive is served without it, kept nowhere, and sent with and fetches nothing. A picture whose map or photo did not arrive is served without it, kept nowhere, and sent with
five minutes' `Cache-Control` and no `ETag`. five minutes' `Cache-Control` and no `ETag`.
Clients keep an address that carries the render version (`?v=r3`, as the Kometa file writes it) for good Clients keep an address that carries the address version (`?v=a1`, as the Kometa file writes it) for good
(`immutable`); any other address a day, then ask again with its `ETag` and get a 304 while it is unchanged. Every (`immutable`); any other address a day, then ask again with its `ETag` and get a 304 while it is unchanged. Every
request the service makes carries the User-Agent `f1-circuits/<version> (+<its public address>)`. OpenStreetMap tiles request the service makes carries the User-Agent `f1-circuits/<version> (+<its public address>)`. OpenStreetMap tiles
are fetched only when a picture asks for them, at most two at once; Wikimedia Commons is asked one request at a time. are fetched only when a picture asks for them, at most two at once; Wikimedia Commons is asked one request at a time.
@@ -168,8 +175,9 @@ are fetched only when a picture asks for them, at most two at once; Wikimedia Co
`merge-check.sh` runs before a change merges: every Python file the service ships must parse, and the tests in `merge-check.sh` runs before a change merges: every Python file the service ships must parse, and the tests in
`tests/` must pass (every circuit has one unique `ergastId`, a race resolves by it, a failed Jolpica fetch is never `tests/` must pass (every circuit has one unique `ergastId`, a race resolves by it, a failed Jolpica fetch is never
kept, every link in this README leads to a file, an unknown circuit or layout is named; a poster's satellite source, kept, every link in this README leads to a file, every directory the service serves is copied into its image, an
credits and licence, its options, keys and cache headers, the picture store's cap, and the picks `/picks/…` answers). unknown circuit or layout is named; a poster's satellite source, credits and licence, its options, keys and cache
headers, the picture store's cap, and the picks `/picks/…` answers).
## Acknowledgment ## Acknowledgment
@@ -191,4 +199,4 @@ Formula 1™ circuits data are not official, and they are not approved nor endor
## License ## License
[The MIT License (MIT)](LICENSE.md) - Copyright (c) 2019-2024 Tomislav Bacinger [The MIT License (MIT)](LICENSE.md) - Copyright (c) 2019-2025 Tomislav Bacinger
+12 -3
View File
@@ -98,6 +98,7 @@ async def root():
*poster_sources.PICKS_ROUTES, *poster_sources.PICKS_ROUTES,
], ],
"examples": "/examples/", "examples": "/examples/",
"guides": "/guides/",
"disclaimer": DISCLAIMER, "disclaimer": DISCLAIMER,
} }
@@ -139,6 +140,14 @@ app.mount(
name="examples", name="examples",
) )
# The guides: step by step, putting the posters in a Plex or Emby library (guides/index.html), in the style of the
# example site.
app.mount(
"/guides",
StaticFiles(directory=Path(__file__).resolve().parent / "guides", html=True),
name="guides",
)
# The poster routes are plain defs, not async: a render fetches map tiles and a schedule and draws for # The poster routes are plain defs, not async: a render fetches map tiles and a schedule and draws for
# seconds, so it runs in the threadpool instead of holding up every other request on the event loop. # seconds, so it runs in the threadpool instead of holding up every other request on the event loop.
@@ -148,14 +157,14 @@ POSTER_OPTIONS_DOC = """Options are query parameters, the same on every poster r
dark, light, none), `photo` (natural, bw), `show` (a comma list of wordmark, round, name, subtitle, date, circuit, dark, light, none), `photo` (natural, bw), `show` (a comma list of wordmark, round, name, subtitle, date, circuit,
locality, session), `locator` and `checker` (on, off), `track` (off, or #rrggbb with an optional width: locality, session), `locator` and `checker` (on, off), `track` (off, or #rrggbb with an optional width:
#ffffff,6), `dim` (0 to 1), `accent` (#rrggbb), `width` (400 up to the frame's), `format` (png, jpg, webp), and #ffffff,6), `dim` (0 to 1), `accent` (#rrggbb), `width` (400 up to the frame's), `format` (png, jpg, webp), and
`v`, the render version, which the Kometa file adds so clients keep the picture for good.""" `v`, the address version, which the Kometa file adds so clients keep the picture for good."""
def render_poster(request: Request, kind: str, grand_prix_name: Optional[str] = None, season: Optional[int] = None, def render_poster(request: Request, kind: str, grand_prix_name: Optional[str] = None, season: Optional[int] = None,
session_slug: Optional[str] = None) -> Response: session_slug: Optional[str] = None) -> Response:
"""A picture with its credits, its licence and what clients may keep of it. """A picture with its credits, its licence and what clients may keep of it.
An address with the current render version (?v=) is kept for good; any other a day, then asked again with its An address with the current address version (?v=) is kept for good; any other a day, then asked again with its
ETag (a 304 while it is unchanged); a picture served without its map or photo five minutes, with no ETag.""" ETag (a 304 while it is unchanged); a picture served without its map or photo five minutes, with no ETag."""
try: try:
options = poster_options.parse_options(request.query_params.multi_items(), kind) options = poster_options.parse_options(request.query_params.multi_items(), kind)
@@ -213,7 +222,7 @@ def get_kometa_metadata():
- uses Kometa's f1_season builder for round/episode names - uses Kometa's f1_season builder for round/episode names
- sets url_poster on the show (the season poster) - sets url_poster on the show (the season poster)
- sets url_poster on each Plex 'season' (== each F1 round) from the race poster route, and on each episode - sets url_poster on each Plex 'season' (== each F1 round) from the race poster route, and on each episode
from the session thumbnail route; every address carries ?v=<render version> from the session thumbnail route; every address carries ?v=<address version>
Kometa harmlessly skips shows / seasons that don't exist in the Plex Kometa harmlessly skips shows / seasons that don't exist in the Plex
library, so we can emit the full schedule and let Kometa do the matching. library, so we can emit the full schedule and let Kometa do the matching.
@@ -3,7 +3,7 @@
"name": "az-2016", "name": "az-2016",
"bbox": [ "bbox": [
49.830927, 49.830927,
40.362639, 40.362541,
49.855189, 49.855189,
40.376148 40.376148
], ],
@@ -15,21 +15,13 @@
"Location": "Baku", "Location": "Baku",
"Name": "Baku City Circuit", "Name": "Baku City Circuit",
"opened": 2016, "opened": 2016,
"seasons": [ "firstgp": 2016,
2017,
2018,
2019,
2021,
2022,
2023,
2024
],
"length": 6003, "length": 6003,
"altitude": -25 "altitude": -25
}, },
"bbox": [ "bbox": [
49.830927, 49.830927,
40.362639, 40.362541,
49.855189, 49.855189,
40.376148 40.376148
], ],
@@ -41,340 +33,340 @@
40.372688 40.372688
], ],
[ [
49.851442, 49.855023,
40.372113 40.373268
],
[
49.848684,
40.371218
],
[
49.847606,
40.370845
],
[
49.844949,
40.369978
],
[
49.84386,
40.369591
],
[
49.842635,
40.3692
],
[
49.84225,
40.369059
],
[
49.841836,
40.368889
],
[
49.841469,
40.368705
],
[
49.838752,
40.367098
],
[
49.838586,
40.366985
],
[
49.838444,
40.366824
],
[
49.838373,
40.366655
],
[
49.838207,
40.365792
],
[
49.83813,
40.365632
],
[
49.837976,
40.365467
],
[
49.836088,
40.364156
],
[
49.835911,
40.363982
],
[
49.835757,
40.363765
],
[
49.835094,
40.362832
],
[
49.834993,
40.362747
],
[
49.834839,
40.362667
],
[
49.83462,
40.362639
],
[
49.834431,
40.362662
],
[
49.834094,
40.362756
],
[
49.833478,
40.362964
],
[
49.831282,
40.363841
],
[
49.831152,
40.363958
],
[
49.831099,
40.364076
],
[
49.830927,
40.365957
],
[
49.830963,
40.366141
],
[
49.831489,
40.367503
],
[
49.831643,
40.367744
],
[
49.831809,
40.367913
],
[
49.832022,
40.368045
],
[
49.833093,
40.368535
],
[
49.834715,
40.369139
],
[
49.835733,
40.369408
],
[
49.835875,
40.369403
],
[
49.83597,
40.369356
],
[
49.836035,
40.369294
],
[
49.836171,
40.368955
],
[
49.836248,
40.368865
],
[
49.836402,
40.368818
],
[
49.836544,
40.368828
],
[
49.836692,
40.368832
],
[
49.836834,
40.368804
],
[
49.837065,
40.368696
],
[
49.837219,
40.368696
],
[
49.837337,
40.368677
],
[
49.837414,
40.368616
],
[
49.838053,
40.367183
],
[
49.838195,
40.367065
],
[
49.838367,
40.36706
],
[
49.838539,
40.36715
],
[
49.838947,
40.367432
],
[
49.841362,
40.368856
],
[
49.841764,
40.369125
],
[
49.841853,
40.369191
],
[
49.841859,
40.369276
],
[
49.841682,
40.369572
],
[
49.841658,
40.369667
],
[
49.841723,
40.369733
],
[
49.842783,
40.370251
],
[
49.84357,
40.370581
],
[
49.844961,
40.371081
],
[
49.845085,
40.371189
],
[
49.845079,
40.371312
],
[
49.84428,
40.372891
],
[
49.84428,
40.373065
],
[
49.84444,
40.373193
],
[
49.846884,
40.374046
],
[
49.849719,
40.375017
],
[
49.851797,
40.37563
],
[
49.853496,
40.376148
],
[
49.853602,
40.376134
],
[
49.853685,
40.376092
],
[
49.854188,
40.37522
],
[
49.854798,
40.374319
],
[
49.855159,
40.373607
],
[
49.855189,
40.37349
],
[
49.855177,
40.373409
], ],
[ [
49.855117, 49.855117,
40.373325 40.373325
], ],
[ [
49.855023, 49.855177,
40.373268 40.373409
],
[
49.855189,
40.37349
],
[
49.855159,
40.373607
],
[
49.854693,
40.374371
],
[
49.854188,
40.37522
],
[
49.853685,
40.376092
],
[
49.853602,
40.376134
],
[
49.853496,
40.376148
],
[
49.851797,
40.37563
],
[
49.849719,
40.375017
],
[
49.846884,
40.374046
],
[
49.84444,
40.373193
],
[
49.84423,
40.373102
],
[
49.844188,
40.372906
],
[
49.845096,
40.371215
],
[
49.845087,
40.371103
],
[
49.844467,
40.370887
],
[
49.843241,
40.370488
],
[
49.842408,
40.370106
],
[
49.841935,
40.369878
],
[
49.841731,
40.369687
],
[
49.841736,
40.369485
],
[
49.841859,
40.369244
],
[
49.841817,
40.369132
],
[
49.84166,
40.369013
],
[
49.840066,
40.368088
],
[
49.838947,
40.367432
],
[
49.838477,
40.367168
],
[
49.838321,
40.367075
],
[
49.838174,
40.367071
],
[
49.838053,
40.367183
],
[
49.837442,
40.368517
],
[
49.837345,
40.368726
],
[
49.837243,
40.368755
],
[
49.837091,
40.368716
],
[
49.836893,
40.3688
],
[
49.836732,
40.368858
],
[
49.836434,
40.368845
],
[
49.836255,
40.368863
],
[
49.836168,
40.368917
],
[
49.836123,
40.369052
],
[
49.836011,
40.369317
],
[
49.835893,
40.369447
],
[
49.835721,
40.369434
],
[
49.835016,
40.369241
],
[
49.834382,
40.369045
],
[
49.832977,
40.368541
],
[
49.831946,
40.368068
],
[
49.83169,
40.36792
],
[
49.831539,
40.367693
],
[
49.831265,
40.366983
],
[
49.830942,
40.36612
],
[
49.830927,
40.365957
],
[
49.831065,
40.364172
],
[
49.831051,
40.364003
],
[
49.831108,
40.363913
],
[
49.833478,
40.362964
],
[
49.833894,
40.362815
],
[
49.834357,
40.362639
],
[
49.834674,
40.362541
],
[
49.83484,
40.36257
],
[
49.834993,
40.362747
],
[
49.835303,
40.363179
],
[
49.835635,
40.363656
],
[
49.835947,
40.36411
],
[
49.836032,
40.364197
],
[
49.837749,
40.365388
],
[
49.837995,
40.365562
],
[
49.838142,
40.365825
],
[
49.838331,
40.36672
],
[
49.838393,
40.366915
],
[
49.83853,
40.367067
],
[
49.838823,
40.367233
],
[
49.841165,
40.368612
],
[
49.841595,
40.36885
],
[
49.841856,
40.368962
],
[
49.842622,
40.369232
],
[
49.844282,
40.36977
],
[
49.845881,
40.370304
],
[
49.847461,
40.370818
],
[
49.848684,
40.371218
],
[
49.851442,
40.372113
], ],
[ [
49.853247, 49.853247,
Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 23 KiB

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg width="150px" height="93px" viewBox="0 0 150 93" xmlns="http://www.w3.org/2000/svg"> <svg width="150px" height="93px" viewBox="0 0 150 93" xmlns="http://www.w3.org/2000/svg">
<title>Baku City Circuit - Baku</title> <title>Baku City Circuit - Baku</title>
<path d="M132.27,27.98 L122.12,31.22 L106.62,36.25 L100.56,38.34 L85.63,43.21 L79.51,45.39 L72.62,47.59 L70.46,48.38 L68.13,49.34 L66.07,50.37 L50.80,59.40 L49.87,60.04 L49.07,60.94 L48.67,61.89 L47.74,66.74 L47.30,67.64 L46.44,68.57 L35.83,75.94 L34.83,76.92 L33.97,78.13 L30.24,83.38 L29.67,83.86 L28.81,84.31 L27.57,84.46 L26.51,84.33 L24.62,83.81 L21.16,82.64 L8.81,77.71 L8.08,77.05 L7.78,76.39 L6.82,65.81 L7.02,64.78 L9.98,57.13 L10.84,55.77 L11.78,54.82 L12.97,54.08 L18.99,51.33 L28.11,47.93 L33.83,46.42 L34.63,46.45 L35.16,46.71 L35.53,47.06 L36.29,48.96 L36.72,49.47 L37.59,49.73 L38.39,49.68 L39.22,49.66 L40.02,49.81 L41.32,50.42 L42.18,50.42 L42.85,50.53 L43.28,50.87 L46.87,58.92 L47.67,59.59 L48.63,59.62 L49.60,59.11 L51.89,57.52 L65.47,49.52 L67.73,48.01 L68.23,47.64 L68.26,47.16 L67.27,45.50 L67.13,44.96 L67.50,44.59 L73.45,41.68 L77.88,39.83 L85.70,37.02 L86.39,36.41 L86.36,35.72 L81.87,26.84 L81.87,25.86 L82.77,25.15 L96.50,20.35 L112.44,14.89 L124.12,11.45 L133.67,8.54 L134.26,8.62 L134.73,8.85 L137.56,13.75 L140.98,18.82 L143.01,22.82 L143.18,23.48 L143.11,23.93 L142.78,24.40 L142.25,24.72 L132.27,27.98" fill="none" stroke="black" stroke-width="2"/> <path d="M132.27,27.71 L142.25,24.45 L142.78,24.13 L143.11,23.66 L143.18,23.20 L143.01,22.54 L140.39,18.25 L137.56,13.48 L134.73,8.58 L134.26,8.34 L133.67,8.26 L124.12,11.17 L112.44,14.62 L96.50,20.08 L82.77,24.87 L81.59,25.38 L81.35,26.48 L86.45,35.99 L86.40,36.62 L82.92,37.83 L76.03,40.07 L71.35,42.22 L68.69,43.50 L67.54,44.57 L67.57,45.71 L68.26,47.06 L68.03,47.69 L67.14,48.36 L58.18,53.56 L51.89,57.25 L49.25,58.73 L48.38,59.26 L47.55,59.28 L46.87,58.65 L43.44,51.15 L42.89,49.98 L42.32,49.81 L41.46,50.03 L40.35,49.56 L39.44,49.23 L37.77,49.31 L36.76,49.21 L36.28,48.90 L36.02,48.14 L35.39,46.65 L34.73,45.92 L33.76,46.00 L29.80,47.08 L26.24,48.18 L18.34,51.02 L12.55,53.67 L11.11,54.51 L10.26,55.78 L8.72,59.77 L6.90,64.62 L6.82,65.54 L7.59,75.57 L7.52,76.52 L7.84,77.03 L21.16,82.36 L23.49,83.20 L26.10,84.19 L27.88,84.74 L28.81,84.58 L29.67,83.58 L31.41,81.15 L33.28,78.47 L35.03,75.92 L35.51,75.43 L45.16,68.74 L46.54,67.76 L47.37,66.28 L48.43,61.25 L48.78,60.15 L49.55,59.30 L51.20,58.37 L64.36,50.62 L66.78,49.28 L68.24,48.65 L72.55,47.13 L81.88,44.11 L90.87,41.11 L99.75,38.22 L106.62,35.97 L122.12,30.94 L132.27,27.71" fill="none" stroke="black" stroke-width="2"/>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

+479 -16
View File
@@ -1,34 +1,497 @@
{ {
"type": "FeatureCollection", "type": "FeatureCollection",
"name": "es-madring", "name": "es-2026",
"bbox": [ "bbox": [
-3.62, -3.62534,
40.462, 40.464278,
-3.61, -3.611988,
40.47 40.480641
], ],
"features": [ "features": [
{ {
"type": "Feature", "type": "Feature",
"properties": { "properties": {
"id": "es-madring", "id": "es-2026",
"Location": "Madrid", "Location": "Madrid",
"Name": "Madring", "Name": "Circuito de Madring",
"opened": 2026, "opened": 2026,
"length": 5416, "firstgp": 2026,
"altitude": 620 "length": 5474,
"altitude": 646
}, },
"bbox": [ "bbox": [
-3.62, -3.62534,
40.462, 40.464278,
-3.61, -3.611988,
40.47 40.480641
], ],
"geometry": { "geometry": {
"type": "Point", "type": "LineString",
"coordinates": [ "coordinates": [
-3.61528, [
40.46528 -3.616887,
40.465178
],
[
-3.619097,
40.464882
],
[
-3.619229,
40.464821
],
[
-3.61925,
40.464438
],
[
-3.619316,
40.464377
],
[
-3.619673,
40.464327
],
[
-3.620088,
40.464278
],
[
-3.620452,
40.464294
],
[
-3.620904,
40.464438
],
[
-3.621225,
40.464671
],
[
-3.622922,
40.466741
],
[
-3.62384,
40.467827
],
[
-3.624116,
40.468257
],
[
-3.624284,
40.46855
],
[
-3.624364,
40.468728
],
[
-3.624554,
40.469276
],
[
-3.624641,
40.469864
],
[
-3.624612,
40.470307
],
[
-3.624532,
40.470784
],
[
-3.624313,
40.471233
],
[
-3.624095,
40.47151
],
[
-3.624007,
40.471604
],
[
-3.624007,
40.471681
],
[
-3.624131,
40.471737
],
[
-3.624233,
40.471814
],
[
-3.624218,
40.471909
],
[
-3.624131,
40.472003
],
[
-3.62408,
40.472114
],
[
-3.624109,
40.472335
],
[
-3.624262,
40.47274
],
[
-3.624393,
40.473017
],
[
-3.624583,
40.473244
],
[
-3.624743,
40.47341
],
[
-3.62483,
40.473604
],
[
-3.625056,
40.474303
],
[
-3.62518,
40.474563
],
[
-3.625333,
40.47469
],
[
-3.62534,
40.474779
],
[
-3.625209,
40.474857
],
[
-3.624976,
40.474992
],
[
-3.624852,
40.475148
],
[
-3.624852,
40.475303
],
[
-3.624932,
40.475491
],
[
-3.625297,
40.476001
],
[
-3.625326,
40.476142
],
[
-3.62534,
40.477106
],
[
-3.625304,
40.477483
],
[
-3.625158,
40.477641
],
[
-3.624838,
40.477829
],
[
-3.624481,
40.478051
],
[
-3.624342,
40.478262
],
[
-3.62435,
40.478517
],
[
-3.624393,
40.478669
],
[
-3.62483,
40.479472
],
[
-3.624874,
40.479738
],
[
-3.624845,
40.48001
],
[
-3.624692,
40.480254
],
[
-3.624459,
40.480464
],
[
-3.624109,
40.480597
],
[
-3.62373,
40.480641
],
[
-3.623322,
40.480625
],
[
-3.622922,
40.48047
],
[
-3.622536,
40.480209
],
[
-3.622303,
40.47991
],
[
-3.622237,
40.479561
],
[
-3.622266,
40.479245
],
[
-3.622426,
40.478913
],
[
-3.622667,
40.478594
],
[
-3.622791,
40.478439
],
[
-3.623993,
40.477298
],
[
-3.62459,
40.476599
],
[
-3.624641,
40.476477
],
[
-3.624597,
40.476306
],
[
-3.624342,
40.476123
],
[
-3.623483,
40.475666
],
[
-3.623133,
40.475433
],
[
-3.62298,
40.475239
],
[
-3.622907,
40.47504
],
[
-3.622907,
40.47405
],
[
-3.622864,
40.473856
],
[
-3.622725,
40.473629
],
[
-3.622521,
40.473394
],
[
-3.622303,
40.473211
],
[
-3.622004,
40.473072
],
[
-3.621654,
40.472984
],
[
-3.620044,
40.472984
],
[
-3.619768,
40.473078
],
[
-3.619484,
40.4732
],
[
-3.619345,
40.473228
],
[
-3.619221,
40.473144
],
[
-3.618784,
40.472646
],
[
-3.618238,
40.471917
],
[
-3.618129,
40.471734
],
[
-3.61799,
40.471579
],
[
-3.617735,
40.471457
],
[
-3.617488,
40.471424
],
[
-3.616541,
40.471518
],
[
-3.616089,
40.471512
],
[
-3.61563,
40.471391
],
[
-3.615324,
40.471161
],
[
-3.615178,
40.47095
],
[
-3.614654,
40.468719
],
[
-3.614603,
40.468445
],
[
-3.614537,
40.468312
],
[
-3.614348,
40.468295
],
[
-3.614071,
40.468451
],
[
-3.613904,
40.468484
],
[
-3.612782,
40.468589
],
[
-3.61268,
40.468506
],
[
-3.612461,
40.467946
],
[
-3.612228,
40.467212
],
[
-3.61201,
40.466237
],
[
-3.611988,
40.465982
],
[
-3.61217,
40.465821
],
[
-3.612454,
40.465771
],
[
-3.616887,
40.465178
]
] ]
} }
} }
Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 23 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 6.8 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

@@ -2,10 +2,10 @@
"type": "FeatureCollection", "type": "FeatureCollection",
"name": "us-2023", "name": "us-2023",
"bbox": [ "bbox": [
-115.173015, -115.173181,
36.108017, 36.107928,
-115.160217, -115.160107,
36.125492 36.12554
], ],
"features": [ "features": [
{ {
@@ -16,65 +16,101 @@
"Name": "Las Vegas Street Circuit", "Name": "Las Vegas Street Circuit",
"opened": 2023, "opened": 2023,
"firstgp": 2023, "firstgp": 2023,
"length": 6116, "length": 6201,
"altitude": 610 "altitude": 610
}, },
"bbox": [ "bbox": [
-115.173015, -115.173181,
36.108017, 36.107928,
-115.160217, -115.160107,
36.125492 36.12554
], ],
"geometry": { "geometry": {
"type": "LineString", "type": "LineString",
"coordinates": [ "coordinates": [
[ [
-115.162219, -115.161202,
36.109017 36.109904
], ],
[ [
-115.16025, -115.160589,
36.110295 36.110461
],
[
-115.160217,
36.110399
],
[
-115.160308,
36.110513
], ],
[ [
-115.160459, -115.160459,
36.110517 36.110578
], ],
[ [
-115.161489, -115.160366,
36.110472 36.110705
], ],
[ [
-115.162366, -115.160335,
36.110008 36.110856
], ],
[ [
-115.162725, -115.160414,
36.109881 36.110992
], ],
[ [
-115.163063, -115.160543,
36.109861 36.111079
], ],
[ [
-115.163375, -115.160775,
36.109975 36.11115
], ],
[ [
-115.163698, -115.160996,
36.110252 36.111179
], ],
[ [
-115.163981, -115.161209,
36.110815 36.111169
],
[
-115.161408,
36.111121
],
[
-115.161844,
36.110909
],
[
-115.162247,
36.110586
],
[
-115.162402,
36.110503
],
[
-115.162741,
36.110442
],
[
-115.162924,
36.110445
],
[
-115.163255,
36.110535
],
[
-115.163438,
36.110617
],
[
-115.163608,
36.110734
],
[
-115.16389,
36.111042
],
[
-115.164004,
36.111303
], ],
[ [
-115.164082, -115.164082,
@@ -85,52 +121,96 @@
36.119152 36.119152
], ],
[ [
-115.163838, -115.163908,
36.11919 36.119211
], ],
[ [
-115.162026, -115.161934,
36.119181
],
[
-115.161342,
36.119184 36.119184
], ],
[ [
-115.161677, -115.161033,
36.119275 36.119242
], ],
[ [
-115.1614, -115.160908,
36.119472 36.119329
], ],
[ [
-115.160834, -115.160559,
36.120057 36.119604
], ],
[ [
-115.160596, -115.160402,
36.120547 36.119783
], ],
[ [
-115.160557, -115.160282,
36.120991 36.119976
], ],
[ [
-115.160616, -115.160195,
36.121204 36.120145
], ],
[ [
-115.160853, -115.160143,
36.121263 36.120365
], ],
[ [
-115.160926, -115.160107,
36.121353 36.120627
], ],
[ [
-115.160735, -115.160117,
36.122189 36.120781
], ],
[ [
-115.160754, -115.160225,
36.122295 36.120836
],
[
-115.160511,
36.120862
],
[
-115.160611,
36.120913
],
[
-115.160697,
36.12102
],
[
-115.160731,
36.121187
],
[
-115.160715,
36.121309
],
[
-115.160438,
36.121696
],
[
-115.16039,
36.121799
],
[
-115.160274,
36.121977
],
[
-115.160316,
36.122164
],
[
-115.160541,
36.122284
], ],
[ [
-115.160959, -115.160959,
@@ -173,84 +253,180 @@
36.125279 36.125279
], ],
[ [
-115.169159, -115.168652,
36.125492 36.125432
], ],
[ [
-115.169376, -115.169318,
36.125433 36.12554
], ],
[ [
-115.169429, -115.169409,
36.125279 36.125522
], ],
[ [
-115.171142, -115.169496,
36.122745 36.125468
], ],
[ [
-115.171849, -115.169564,
36.121548 36.125284
], ],
[ [
-115.17235, -115.169633,
36.120307 36.125158
], ],
[ [
-115.172666, -115.170324,
36.119312 36.124067
], ],
[ [
-115.172857, -115.170754,
36.118128 36.123418
], ],
[ [
-115.17289, -115.170978,
36.117356 36.123089
], ],
[ [
-115.172857, -115.171208,
36.114684 36.122772
], ],
[ [
-115.173015, -115.171605,
36.108714 36.122215
], ],
[ [
-115.172877, -115.172013,
36.10857 36.121466
], ],
[ [
-115.1726, -115.172229,
36.108469 36.1209
], ],
[ [
-115.172383, -115.172466,
36.108448 36.120249
], ],
[ [
-115.172126, -115.172625,
36.108235 36.119783
], ],
[ [
-115.171981, -115.172744,
36.108091 36.119319
], ],
[ [
-115.17173, -115.172839,
36.108038 36.118849
], ],
[ [
-115.163947, -115.17294,
36.108017 36.11816
], ],
[ [
-115.16371, -115.172965,
36.108091 36.117758
], ],
[ [
-115.162219, -115.172991,
36.109017 36.117279
],
[
-115.17298,
36.115982
],
[
-115.172974,
36.115241
],
[
-115.172971,
36.114679
],
[
-115.173104,
36.111742
],
[
-115.173144,
36.110235
],
[
-115.173145,
36.109483
],
[
-115.173181,
36.108577
],
[
-115.173118,
36.108504
],
[
-115.173032,
36.10848
],
[
-115.172826,
36.108483
],
[
-115.172674,
36.108436
],
[
-115.172332,
36.108159
],
[
-115.172033,
36.108021
],
[
-115.171635,
36.107958
],
[
-115.169902,
36.107928
],
[
-115.167635,
36.10795
],
[
-115.16577,
36.107941
],
[
-115.164859,
36.107951
],
[
-115.164113,
36.108035
],
[
-115.163333,
36.108155
],
[
-115.16313,
36.10823
],
[
-115.162966,
36.108313
],
[
-115.162835,
36.108413
],
[
-115.161202,
36.109904
] ]
] ]
} }
Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 18 KiB

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg width="150px" height="93px" viewBox="0 0 150 93" xmlns="http://www.w3.org/2000/svg"> <svg width="150px" height="93px" viewBox="0 0 150 93" xmlns="http://www.w3.org/2000/svg">
<title>Las Vegas Street Circuit - Nevada</title> <title>Las Vegas Street Circuit - Nevada</title>
<path d="M96.27,83.93 L105.80,77.75 L105.96,77.25 L105.52,76.70 L104.79,76.68 L99.80,76.90 L95.56,79.14 L93.82,79.75 L92.19,79.85 L90.68,79.30 L89.12,77.96 L87.75,75.24 L87.26,35.47 L87.55,34.90 L88.44,34.72 L97.21,34.75 L98.90,34.31 L100.24,33.35 L102.97,30.52 L104.13,28.15 L104.31,26.00 L104.03,24.97 L102.88,24.69 L102.53,24.25 L103.45,20.21 L103.36,19.69 L102.37,19.56 L87.23,19.25 L81.63,18.60 L79.78,17.88 L77.74,16.18 L75.99,13.35 L73.31,8.26 L71.59,6.79 L69.80,5.80 L67.99,5.26 L62.70,4.23 L61.65,4.51 L61.39,5.26 L53.10,17.52 L49.68,23.31 L47.26,29.31 L45.73,34.13 L44.81,39.85 L44.65,43.59 L44.81,56.52 L44.04,85.40 L44.71,86.10 L46.05,86.59 L47.10,86.69 L48.34,87.72 L49.04,88.41 L50.26,88.67 L87.91,88.77 L89.06,88.41 L96.27,83.93" fill="none" stroke="black" stroke-width="2"/> <path d="M101.12,79.29 L104.07,76.61 L104.69,76.05 L105.14,75.44 L105.29,74.72 L104.91,74.06 L104.29,73.65 L103.17,73.31 L102.11,73.17 L101.09,73.21 L100.14,73.44 L98.04,74.46 L96.11,76.01 L95.36,76.41 L93.74,76.70 L92.86,76.69 L91.27,76.26 L90.39,75.86 L89.57,75.30 L88.22,73.82 L87.67,72.57 L87.30,35.45 L87.58,34.89 L88.13,34.61 L97.61,34.75 L100.45,34.74 L101.94,34.46 L102.54,34.04 L104.21,32.72 L104.96,31.86 L105.54,30.94 L105.96,30.13 L106.21,29.07 L106.38,27.81 L106.33,27.07 L105.81,26.81 L104.44,26.68 L103.96,26.44 L103.55,25.93 L103.39,25.12 L103.46,24.54 L104.79,22.68 L105.02,22.19 L105.58,21.33 L105.38,20.43 L104.30,19.86 L102.29,19.68 L87.27,19.37 L81.72,18.72 L79.88,18.00 L77.86,16.31 L76.12,13.51 L73.46,8.46 L71.75,7.00 L69.98,6.02 L68.18,5.48 L65.36,4.75 L62.16,4.23 L61.73,4.31 L61.31,4.57 L60.98,5.46 L60.65,6.06 L57.33,11.30 L55.27,14.41 L54.19,15.99 L53.09,17.51 L51.18,20.19 L49.23,23.78 L48.19,26.50 L47.05,29.63 L46.29,31.86 L45.72,34.09 L45.26,36.35 L44.78,39.65 L44.66,41.58 L44.53,43.88 L44.58,50.11 L44.61,53.67 L44.63,56.36 L43.99,70.46 L43.80,77.70 L43.79,81.31 L43.62,85.66 L43.92,86.01 L44.33,86.12 L45.32,86.11 L46.05,86.33 L47.70,87.66 L49.13,88.33 L51.04,88.63 L59.36,88.77 L70.24,88.67 L79.20,88.71 L83.57,88.66 L87.15,88.26 L90.89,87.68 L91.87,87.32 L92.66,86.92 L93.28,86.44 L101.12,79.29" fill="none" stroke="black" stroke-width="2"/>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 995 B

After

Width:  |  Height:  |  Size: 1.5 KiB

@@ -2,10 +2,10 @@
"type": "FeatureCollection", "type": "FeatureCollection",
"name": "us-2022", "name": "us-2022",
"bbox": [ "bbox": [
-80.244805, -80.244783,
25.955259, 25.955221,
-80.229711, -80.229764,
25.960590 25.96059
], ],
"features": [ "features": [
{ {
@@ -15,22 +15,66 @@
"Location": "Miami", "Location": "Miami",
"Name": "Miami International Autodrome", "Name": "Miami International Autodrome",
"opened": 2022, "opened": 2022,
"seasons": [2022, 2023, 2024], "firstgp": 2022,
"length": 5412, "length": 5412,
"altitude": 1 "altitude": 1
}, },
"bbox": [ "bbox": [
-80.244805, -80.244783,
25.955259, 25.955221,
-80.229711, -80.229764,
25.96059 25.96059
], ],
"geometry": { "geometry": {
"type": "LineString", "type": "LineString",
"coordinates": [ "coordinates": [
[ [
-80.236636, -80.237371,
25.955895 25.959092
],
[
-80.235319,
25.95794
],
[
-80.235284,
25.957855
],
[
-80.235299,
25.957776
],
[
-80.23536,
25.957671
],
[
-80.235797,
25.957379
],
[
-80.235933,
25.957247
],
[
-80.235978,
25.957009
],
[
-80.235933,
25.956757
],
[
-80.235976,
25.956446
],
[
-80.236081,
25.956247
],
[
-80.236477,
25.955962
], ],
[ [
-80.236928, -80.236928,
@@ -125,20 +169,20 @@
25.957311 25.957311
], ],
[ [
-80.24439, -80.244395,
25.957229 25.957215
], ],
[ [
-80.244562, -80.244562,
25.957076 25.957076
], ],
[ [
-80.244706, -80.244721,
25.956851 25.956852
], ],
[ [
-80.244805, -80.244783,
25.956619 25.956614
], ],
[ [
-80.244776, -80.244776,
@@ -165,132 +209,124 @@
25.956157 25.956157
], ],
[ [
-80.243762, -80.243761,
25.956178 25.956156
], ],
[ [
-80.243527, -80.243194,
25.956146 25.956048
], ],
[ [
-80.242561, -80.242156,
25.955939 25.955859
], ],
[ [
-80.242249, -80.241083,
25.955896 25.955887
], ],
[ [
-80.241873, -80.239445,
25.955898 25.955948
], ],
[ [
-80.239344, -80.238992,
25.955952 25.955819
], ],
[ [
-80.23896, -80.238432,
25.955847 25.955639
], ],
[ [
-80.238518, -80.237981,
25.955702
],
[
-80.23788,
25.955496 25.955496
], ],
[ [
-80.237521, -80.237375,
25.955398 25.955323
], ],
[ [
-80.237233, -80.236745,
25.955329 25.955228
], ],
[ [
-80.236835, -80.236112,
25.955278 25.955221
], ],
[ [
-80.236256, -80.235447,
25.955259 25.955319
],
[
-80.235521,
25.955351
], ],
[ [
-80.23484, -80.23484,
25.955511 25.955511
], ],
[ [
-80.233638, -80.233453,
25.955878 25.955966
], ],
[ [
-80.232783, -80.232648,
25.956175 25.956242
], ],
[ [
-80.23226, -80.23226,
25.956397 25.956397
], ],
[ [
-80.231591, -80.231268,
25.956683 25.956871
],
[
-80.231134,
25.956926
], ],
[ [
-80.230734, -80.230734,
25.957178 25.957178
], ],
[ [
-80.230629, -80.230627,
25.957322 25.957308
], ],
[ [
-80.230624, -80.230662,
25.957412 25.957416
], ],
[ [
-80.230714, -80.230759,
25.957497 25.9575
], ],
[ [
-80.230859, -80.231004,
25.957578 25.957633
], ],
[ [
-80.231179, -80.231175,
25.957794 25.957748
], ],
[ [
-80.231252, -80.231268,
25.95794 25.957916
], ],
[ [
-80.231269, -80.231288,
25.958145 25.958091
], ],
[ [
-80.231191, -80.231233,
25.958304 25.958304
], ],
[ [
-80.23101, -80.231101,
25.958424 25.958423
], ],
[ [
-80.2307, -80.230946,
25.958456 25.958479
], ],
[ [
-80.23036, -80.230487,
25.958483 25.958454
],
[
-80.230258,
25.958482
], ],
[ [
-80.230157, -80.230157,
@@ -301,44 +337,44 @@
25.958676 25.958676
], ],
[ [
-80.229711, -80.229764,
25.959114 25.95906
], ],
[ [
-80.229723, -80.22978,
25.95918 25.959144
], ],
[ [
-80.229857, -80.229896,
25.95923 25.959186
], ],
[ [
-80.229938, -80.230001,
25.959267 25.959256
], ],
[ [
-80.229971, -80.230005,
25.959336 25.959399
], ],
[ [
-80.229829, -80.229815,
25.959781 25.95995
], ],
[ [
-80.22977, -80.22983,
25.960005 25.960044
], ],
[ [
-80.22979, -80.229916,
25.960073 25.960107
], ],
[ [
-80.22988, -80.230394,
25.960131 25.960146
], ],
[ [
-80.23021, -80.237297,
25.960149 25.960366
], ],
[ [
-80.242801, -80.242801,
@@ -361,108 +397,48 @@
25.960144 25.960144
], ],
[ [
-80.242262, -80.242453,
25.959854 25.959941
], ],
[ [
-80.242062, -80.242134,
25.959736 25.959787
], ],
[ [
-80.24179, -80.241874,
25.959705 25.959728
], ],
[ [
-80.241472, -80.241645,
25.95977 25.959745
], ],
[ [
-80.240543, -80.241365,
25.960163 25.959836
], ],
[ [
-80.240237, -80.240712,
25.960266 25.960112
], ],
[ [
-80.239932, -80.240346,
25.96027 25.9602
], ],
[ [
-80.239632, -80.239896,
25.96024 25.960235
], ],
[ [
-80.23935, -80.239452,
25.960194 25.960179
], ],
[ [
-80.238934, -80.239033,
25.960033 25.960022
], ],
[ [
-80.235522, -80.237371,
25.95807 25.959092
],
[
-80.235365,
25.957974
],
[
-80.235293,
25.957894
],
[
-80.23528,
25.957799
],
[
-80.235374,
25.957669
],
[
-80.235529,
25.957582
],
[
-80.235691,
25.957473
],
[
-80.235918,
25.957258
],
[
-80.235984,
25.957061
],
[
-80.235925,
25.956832
],
[
-80.235917,
25.956661
],
[
-80.235963,
25.956401
],
[
-80.236066,
25.956259
],
[
-80.236208,
25.956124
],
[
-80.236366,
25.956036
],
[
-80.236636,
25.955895
] ]
] ]
} }
Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg width="150px" height="93px" viewBox="0 0 150 93" xmlns="http://www.w3.org/2000/svg"> <svg width="150px" height="93px" viewBox="0 0 150 93" xmlns="http://www.w3.org/2000/svg">
<title>Miami International Autodrome - Miami</title> <title>Miami International Autodrome - Miami</title>
<path d="M80.62,64.84 L77.98,65.49 L75.33,66.03 L71.43,66.11 L68.37,65.61 L64.78,64.17 L46.59,54.36 L43.98,52.94 L42.64,52.73 L41.10,52.62 L39.57,52.80 L37.62,53.35 L35.97,54.18 L34.29,55.40 L32.54,56.45 L30.24,56.79 L28.18,56.62 L25.95,55.66 L23.87,53.98 L21.97,52.29 L19.84,51.34 L17.64,50.94 L14.99,51.36 L12.56,52.04 L10.57,52.78 L9.01,54.17 L7.71,56.20 L6.82,58.29 L7.08,60.14 L7.52,61.35 L8.25,62.18 L9.75,62.91 L11.54,62.91 L13.77,62.47 L16.24,62.28 L18.36,62.57 L27.09,64.44 L29.91,64.83 L33.31,64.81 L56.15,64.32 L59.62,65.27 L63.62,66.58 L69.38,68.44 L72.62,69.33 L75.23,69.95 L78.82,70.41 L84.05,70.58 L90.69,69.75 L96.84,68.30 L107.70,64.99 L115.43,62.31 L120.15,60.30 L126.20,57.72 L130.33,55.52 L133.94,53.24 L134.89,51.94 L134.93,51.13 L134.12,50.36 L132.81,49.63 L129.92,47.68 L129.26,46.36 L129.11,44.51 L129.81,43.07 L131.45,41.99 L134.25,41.70 L137.32,41.45 L139.15,40.93 L140.54,39.71 L143.18,35.75 L143.07,35.16 L141.86,34.71 L141.13,34.37 L140.83,33.75 L142.12,29.73 L142.65,27.70 L142.47,27.09 L141.66,26.57 L138.67,26.40 L24.92,22.42 L23.47,22.76 L23.16,23.79 L23.66,25.08 L25.38,26.45 L29.79,29.07 L31.60,30.13 L34.06,30.41 L36.93,29.83 L45.32,26.28 L48.09,25.35 L50.84,25.31 L53.55,25.58 L56.10,26.00 L59.86,27.45 L90.68,45.19 L92.10,46.05 L92.75,46.78 L92.87,47.63 L92.02,48.81 L90.62,49.59 L89.16,50.58 L87.11,52.52 L86.51,54.30 L87.04,56.37 L87.11,57.91 L86.70,60.26 L85.77,61.55 L84.49,62.77 L83.06,63.56 L80.62,64.84" fill="none" stroke="black" stroke-width="2"/> <path d="M74.11,35.73 L92.75,46.19 L93.06,46.96 L92.93,47.68 L92.37,48.63 L88.41,51.28 L87.17,52.48 L86.76,54.64 L87.17,56.93 L86.78,59.75 L85.83,61.56 L82.23,64.15 L78.14,65.42 L75.48,65.95 L71.55,66.03 L68.48,65.53 L64.87,64.08 L46.59,54.22 L43.96,52.80 L42.62,52.59 L41.07,52.48 L39.53,52.66 L37.57,53.21 L35.92,54.05 L34.23,55.28 L32.47,56.33 L30.16,56.67 L28.08,56.50 L25.85,55.53 L23.75,53.84 L21.84,52.14 L19.70,51.19 L17.50,50.79 L14.84,51.21 L12.39,51.90 L10.34,52.77 L8.82,54.03 L7.38,56.07 L6.82,58.23 L6.88,60.03 L7.33,61.25 L8.06,62.08 L9.56,62.82 L11.37,62.82 L13.60,62.38 L16.10,62.38 L21.25,63.37 L30.67,65.08 L40.41,64.83 L55.28,64.27 L59.40,65.44 L64.48,67.08 L68.58,68.38 L74.08,69.95 L79.80,70.81 L85.55,70.87 L91.58,69.98 L97.09,68.24 L109.69,64.11 L117.00,61.60 L120.52,60.20 L129.53,55.89 L134.37,53.11 L135.35,51.92 L135.03,50.94 L134.15,50.18 L131.92,48.97 L130.37,47.93 L129.53,46.40 L129.34,44.82 L129.84,42.88 L131.04,41.80 L132.45,41.29 L136.62,41.52 L138.70,41.27 L139.61,40.73 L141.01,39.50 L143.18,36.02 L143.04,35.26 L141.98,34.87 L141.03,34.24 L140.99,32.94 L142.72,27.94 L142.58,27.08 L141.80,26.51 L137.46,26.16 L74.79,24.16 L24.81,22.13 L23.35,22.47 L23.04,23.51 L23.54,24.80 L25.28,26.18 L27.97,28.02 L30.87,29.42 L33.23,29.95 L35.31,29.80 L37.85,28.97 L43.78,26.47 L47.10,25.67 L51.19,25.35 L55.22,25.86 L59.02,27.28 L74.11,35.73" fill="none" stroke="black" stroke-width="2"/>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

+43 -19
View File
@@ -39,6 +39,10 @@ the 2021–2023 mosaic covers the whole country, and its frozen date range is th
for. EOX's 2016 mosaic (CC BY 4.0) was rejected by the operator: too soft to read a circuit. (EOX's for. EOX's 2016 mosaic (CC BY 4.0) was rejected by the operator: too soft to read a circuit. (EOX's
capabilities also mark 2017 as CC BY 4.0.) capabilities also mark 2017 as CC BY 4.0.)
**The traces follow upstream.** A layout's trace is upstream's (bacinger/f1-circuits) newest trace of that
circuit, copied once into the repository word for word, never fetched at run time. A newer upstream trace of a
circuit already drawn is taken as a plain update.
**`bg=satellite`** (and `aerial`, kept for addresses already in use) takes, per layout, the national aerial **`bg=satellite`** (and `aerial`, kept for addresses already in use) takes, per layout, the national aerial
photo of the circuit's country, else EOX's newest mosaic. The operator can switch a layout to the dark photo of the circuit's country, else EOX's newest mosaic. The operator can switch a layout to the dark
OpenStreetMap map, where EOX is too soft to read the circuit: `"use": "map"` in its entry of OpenStreetMap map, where EOX is too soft to read the circuit: `"use": "map"` in its entry of
@@ -63,20 +67,26 @@ others. Commons: one API request at a time, at most five a second, at most two d
A map is kept only when every tile came and the tiles are not all one picture (a provider's placeholder). A map is kept only when every tile came and the tiles are not all one picture (a provider's placeholder).
`dark` and `light` are made from the kept OpenStreetMap layer. A layout whose trace is a point or empty is drawn `dark` and `light` are made from the kept OpenStreetMap layer. A layout whose trace is a point or empty is drawn
at the circuit's location, without a track. Layers live in the module's directory `layers`, class `rebuildable` at the circuit's location, without a track; no current race may draw one, which the merge check holds: every
layout that `find_layout_slug_for_year` chooses for a season from 2020 on has a LineString trace of more than 10
points (`tests/test_traces.py`). Layers live in the module's directory `layers`, class `rebuildable`
(backed up; fetched again if lost). (backed up; fetched again if lost).
## Finished images (kept, capped) ## Finished images (kept, capped)
Every finished picture is stored under a key made of its route, its resolved options and the keys of the layers Every finished picture is stored under a key made of its route, its resolved options, the keys of the layers it was
it was made from, in the directory `posters`, class `cache`, at most 2 GB; the least recently used go first when made from, and the credit of each layer drawn from a pick, in the directory `posters`, class `cache`, at most 2 GB;
it is full. A picture whose layer did not arrive is not stored. The render version is `r3`: no poster stored the least recently used go first when it is full. A picture whose layer did not arrive is not stored. The render
before it is served again. version is `r3`: no poster stored before it is served again.
**What clients keep.** An address that carries the render version (`?v=r3`, as the Kometa file writes it) is **What clients keep.** The address clients are given carries an address version of its own (`?v=a1`, as the
sent `Cache-Control: public, max-age=31536000, immutable`. Any other address is sent an ETag and Kometa file writes it), separate from the render version that keys kept layers and finished pictures. The address
`max-age=86400`, and a matching `If-None-Match` (weak or strong) gets a 304. A picture served without its layer version is raised when a look changes, so clients load it again from the pictures already kept; the render version
is sent `max-age=300` and no ETag. is raised only when the drawing itself changes. The address version was raised to `a1` (from `r3`, the render
version the addresses carried before) because every season poster changed; the render version stays `r3`.
An address that carries the address version is sent `Cache-Control: public, max-age=31536000, immutable`. Any
other address is sent an ETag and `max-age=86400`, and a matching `If-None-Match` (weak or strong) gets a 304. A
picture served without its layer is sent `max-age=300` and no ETag.
## Options ## Options
@@ -118,11 +128,18 @@ Commons photo; until one is picked, it is drawn without a photo. Photos without
the operator's earlier, hand-curated season photos carry agency credits (Getty Images, Motorsport Images/LAT the operator's earlier, hand-curated season photos carry agency credits (Getty Images, Motorsport Images/LAT
and others) and stay private, as the reference for finding a freely licensed photo of the same car. and others) and stay private, as the reference for finding a freely licensed photo of the same car.
**Each season's photo is matched to the operator's curated car of that season**, in this order: the same car; the
same model in a livery it raced that season; the same team's car of that season; that season's champion car. A
curated photo of another year's car gives way to that season's car. The table of picks, `seasons/picks.md`, names
the match per season.
## Picking photos ## Picking photos
`tools/commons_candidates.py` lists candidates from Commons per layout (aerial photos of the circuit dated in the `tools/commons_candidates.py` lists candidates from Commons per layout (aerial photos of the circuit dated in the
layout's years) and per season (that season's cars): only CC0, public domain, CC BY and CC BY-SA; quality marks, layout's years) and per season (the photos in its "<year> Formula One season cars" category): only CC0, public
size and landscape first; written to `examples/data/candidates.json`. The picker page shows, per layout, the domain, CC BY and CC BY-SA; quality marks, size and landscape first; written to `examples/data/candidates.json`.
Where a season's category holds no free photo of the curated car, the person or session picking searches Commons for
that car by name, and the pick's row in `seasons/picks.md` says so. The picker page shows, per layout, the
`bg=satellite` decision first (the national photo and EOX next to each other; keep the satellite, or use the map `bg=satellite` decision first (the national photo and EOX next to each other; keep the satellite, or use the map
instead), then the optional photo candidates for `bg=photo`, beside the picks of the circuit's other layouts; per instead), then the optional photo candidates for `bg=photo`, beside the picks of the circuit's other layouts; per
season, its candidates beside the nearest seasons' picks. It gives the entry to copy; it writes nothing. season, its candidates beside the nearest seasons' picks. It gives the entry to copy; it writes nothing.
@@ -133,6 +150,13 @@ An entry holds the photo fields (`file`, the Commons title without "File:"; `lic
`date`, `YYYY[-MM[-DD]]`), `"use": "map"`, or both. A key starting with `$` is a note and is skipped. Refused and `date`, `YYYY[-MM[-DD]]`), `"use": "map"`, or both. A key starting with `$` is a note and is skipped. Refused and
logged when read: an unknown `use`, incomplete photo fields, an entry with neither, a licence that is not free. logged when read: an unknown `use`, incomplete photo fields, an entry with neither, a licence that is not free.
An entry's `date` is when the photo was taken. Where the date Commons gives cannot be when the photo was taken (a
scan, an upload, a camera clock that was never set, a date after the file's upload), it is the date the file's
description or category gives, and the entry is marked `"date_from"`: `"description"` or `"category"`. Where neither
says when the photo was taken, it is the month of the file's upload, the latest it can have been taken, marked
`"date_from": "upload"`. The ported CC BY-SA licences (2.0 de, 3.0 de, 3.0 nl) are free like their unported versions
and give the picture CC BY-SA 4.0.
The API serves both files, read-only, as the poster service has them loaded: `/picks/circuits.json` and The API serves both files, read-only, as the poster service has them loaded: `/picks/circuits.json` and
`/picks/seasons.json` answer the notes first, then the entries it draws from (a refused entry is left out), with the `/picks/seasons.json` answer the notes first, then the entries it draws from (a refused entry is left out), with the
CORS of every route and, like the other JSON routes, no `Cache-Control`; the root route lists both. The picker reads the picks CORS of every route and, like the other JSON routes, no `Cache-Control`; the root route lists both. The picker reads the picks
@@ -144,11 +168,11 @@ else a failure says which address failed and why.
- On every picture: the credit line of each source it was made from, joined with " · ", at least 12 px high - On every picture: the credit line of each source it was made from, joined with " · ", at least 12 px high
after scaling, wrapping when needed, on a dark band above the bottom strip. after scaling, wrapping when needed, on a dark band above the bottom strip.
- **A picture's licence follows its sources:** CC BY-SA 4.0 when made from a CC BY-SA photo (2.0, 3.0 and - **A picture's licence follows its sources:** CC BY-SA 4.0 when made from a CC BY-SA photo (2.0, 2.5, 3.0
3.0 DE allow a later version with the same elements); CC BY-NC-SA 4.0 when made from EOX's mosaic; CC BY 4.0 and the ported 2.0 DE, 3.0 DE and 3.0 NL allow a later version with the same elements); CC BY-NC-SA 4.0 when made
otherwise. Jolpica's race names and dates are single facts and do not set it. The satellite chain takes one from EOX's mosaic; CC BY 4.0 otherwise. Jolpica's race names and dates are single facts and do not set it. The
source, so a BY-SA photo and an NC-SA mosaic never meet on one picture; a picture that would combine them is satellite chain takes one source, so a BY-SA photo and an NC-SA mosaic never meet on one picture; a picture that
refused. would combine them is refused.
- In every picture's response: `X-Credits` (the credit line folded to ASCII: ß→ss, æ→ae, ø→o, œ→oe, đ→d, then - In every picture's response: `X-Credits` (the credit line folded to ASCII: ß→ss, æ→ae, ø→o, œ→oe, đ→d, then
accents dropped, "©" as "(c)", sources joined with " | "), `X-License`, and `Link: </licences>; rel="license"`; accents dropped, "©" as "(c)", sources joined with " | "), `X-License`, and `Link: </licences>; rel="license"`;
CORS exposes them and the ETag. CORS exposes them and the ETag.
@@ -160,6 +184,6 @@ else a failure says which address failed and why.
## Not in this change ## Not in this change
The disk tile store (replaced by kept layers); renaming the service away from "F1"; the four layouts whose trace The disk tile store (replaced by kept layers); renaming the service away from "F1"; the three layouts whose trace
is empty or a point, and the Bahrain and Donington traces that sit off their real track (traced separately); the is empty (Mont-Tremblant 1968-1970, Buddh 2011-2013, Yeongam 2010-2013), Bahrain's trace that sits off its real
season photos matched to the operator's curated cars. track, and Donington's, a copy of Aintree's trace (traced separately).
+1
View File
@@ -23,6 +23,7 @@
<a href="library.html">Library</a> <a href="library.html">Library</a>
<a href="picker.html">Photo picker</a> <a href="picker.html">Photo picker</a>
<a href="licences.html">Licences</a> <a href="licences.html">Licences</a>
<a href="../guides/index.html">Guides</a>
</nav> </nav>
<div id="api-base"></div> <div id="api-base"></div>
</header> </header>
+1
View File
@@ -23,6 +23,7 @@
<a href="library.html">Library</a> <a href="library.html">Library</a>
<a href="picker.html">Photo picker</a> <a href="picker.html">Photo picker</a>
<a href="licences.html">Licences</a> <a href="licences.html">Licences</a>
<a href="../guides/index.html">Guides</a>
</nav> </nav>
<div id="api-base"></div> <div id="api-base"></div>
</header> </header>
+1
View File
@@ -23,6 +23,7 @@
<a href="library.html">Library</a> <a href="library.html">Library</a>
<a href="picker.html">Photo picker</a> <a href="picker.html">Photo picker</a>
<a href="licences.html">Licences</a> <a href="licences.html">Licences</a>
<a href="../guides/index.html">Guides</a>
</nav> </nav>
<div id="api-base"></div> <div id="api-base"></div>
</header> </header>
+1
View File
@@ -23,6 +23,7 @@
<a href="library.html">Library</a> <a href="library.html">Library</a>
<a href="picker.html">Photo picker</a> <a href="picker.html">Photo picker</a>
<a href="licences.html">Licences</a> <a href="licences.html">Licences</a>
<a href="../guides/index.html">Guides</a>
</nav> </nav>
<div id="api-base"></div> <div id="api-base"></div>
</header> </header>
+1
View File
@@ -23,6 +23,7 @@
<a href="library.html">Library</a> <a href="library.html">Library</a>
<a href="picker.html">Photo picker</a> <a href="picker.html">Photo picker</a>
<a href="licences.html">Licences</a> <a href="licences.html">Licences</a>
<a href="../guides/index.html">Guides</a>
</nav> </nav>
<div id="api-base"></div> <div id="api-base"></div>
</header> </header>
+1
View File
@@ -23,6 +23,7 @@
<a href="library.html" aria-current="page">Library</a> <a href="library.html" aria-current="page">Library</a>
<a href="picker.html">Photo picker</a> <a href="picker.html">Photo picker</a>
<a href="licences.html">Licences</a> <a href="licences.html">Licences</a>
<a href="../guides/index.html">Guides</a>
</nav> </nav>
<div id="api-base"></div> <div id="api-base"></div>
</header> </header>
+1
View File
@@ -23,6 +23,7 @@
<a href="library.html">Library</a> <a href="library.html">Library</a>
<a href="picker.html">Photo picker</a> <a href="picker.html">Photo picker</a>
<a href="licences.html" aria-current="page">Licences</a> <a href="licences.html" aria-current="page">Licences</a>
<a href="../guides/index.html">Guides</a>
</nav> </nav>
<div id="api-base"></div> <div id="api-base"></div>
</header> </header>
+1
View File
@@ -25,6 +25,7 @@
<a href="library.html">Library</a> <a href="library.html">Library</a>
<a href="picker.html">Photo picker</a> <a href="picker.html">Photo picker</a>
<a href="licences.html">Licences</a> <a href="licences.html">Licences</a>
<a href="../guides/index.html">Guides</a>
</nav> </nav>
<div id="api-base"></div> <div id="api-base"></div>
</header> </header>
+1
View File
@@ -25,6 +25,7 @@
<a href="library.html">Library</a> <a href="library.html">Library</a>
<a href="picker.html" aria-current="page">Photo picker</a> <a href="picker.html" aria-current="page">Photo picker</a>
<a href="licences.html">Licences</a> <a href="licences.html">Licences</a>
<a href="../guides/index.html">Guides</a>
</nav> </nav>
<div id="api-base"></div> <div id="api-base"></div>
</header> </header>
+1
View File
@@ -23,6 +23,7 @@
<a href="library.html">Library</a> <a href="library.html">Library</a>
<a href="picker.html">Photo picker</a> <a href="picker.html">Photo picker</a>
<a href="licences.html">Licences</a> <a href="licences.html">Licences</a>
<a href="../guides/index.html">Guides</a>
</nav> </nav>
<div id="api-base"></div> <div id="api-base"></div>
</header> </header>
+33
View File
@@ -445,3 +445,36 @@ table.sources th:nth-child(4), table.sources td:nth-child(4) { width: 34%; }
.photo-card .request.compact .url { font-size: 0.66rem; } .photo-card .request.compact .url { font-size: 0.66rem; }
.photo-card .status { font-size: 0.75rem; margin: 0; } .photo-card .status { font-size: 0.75rem; margin: 0; }
#sat .choices { margin: 0.75rem 0 0.25rem; } #sat .choices { margin: 0.75rem 0 0.25rem; }
/* ---- guides (guides/): numbered steps, boxes to copy, example pictures ---- */
ol.steps { padding-left: 1.6rem; max-width: 60rem; }
ol.steps > li { margin: 0.55rem 0; padding-left: 0.2rem; }
ol.steps > li::marker { font-weight: 700; color: var(--accent); }
.see { color: var(--ok); font-weight: 600; }
.copy {
display: flex;
align-items: flex-start;
gap: 0.5rem;
background: var(--code-bg);
border: 1px solid var(--line);
border-radius: 8px;
padding: 0.5rem 0.6rem;
margin: 0.5rem 0;
max-width: 60rem;
}
.copy code { flex: 1; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.88rem; }
.copy button { flex: none; font-size: 0.8rem; padding: 0.2rem 0.6rem; }
.examples-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; margin: 0.75rem 0; }
.examples-row figure { margin: 0; }
.examples-row img { display: block; border-radius: 8px; border: 1px solid var(--line); height: 240px; width: auto; }
.examples-row figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.3rem; max-width: 22rem; }
.guide-step { max-width: 62rem; }
.guide-step h2 .num { color: var(--accent); }
details.more { margin: 0.6rem 0; max-width: 60rem; }
details.more summary { cursor: pointer; font-weight: 600; }
/* In a guide, an address or file name in a table wraps, so the table fits a phone. */
.guide-step td code { white-space: normal; overflow-wrap: anywhere; }
+1
View File
@@ -23,6 +23,7 @@
<a href="library.html">Library</a> <a href="library.html">Library</a>
<a href="picker.html">Photo picker</a> <a href="picker.html">Photo picker</a>
<a href="licences.html">Licences</a> <a href="licences.html">Licences</a>
<a href="../guides/index.html">Guides</a>
</nav> </nav>
<div id="api-base"></div> <div id="api-base"></div>
</header> </header>
+292
View File
@@ -0,0 +1,292 @@
<!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 Emby · Guides · F1 Circuits</title>
<meta name="description" content="Step by step: give every season, race weekend and session of your Formula 1 library in Emby its poster or thumbnail from F1 Circuits, by hand or as picture files.">
<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">Plex</a>
<a href="emby.html" aria-current="page">Emby</a>
<a href="../examples/index.html">Examples</a>
</nav>
</header>
<main>
<h1>Using the posters in Emby</h1>
<p class="lead">
Emby can show your Formula 1 library with a poster for every season, a poster for every race weekend and a picture
for every session. This guide shows two ways to put them in: by hand in Emby's own screens, or as picture files
next to your videos.
</p>
<p class="notice info">
Kometa, the helper the <a href="plex.html">Plex guide</a> uses, works only with Plex: it
<a href="https://kometa.wiki/en/latest/config/plex/">cannot run</a> without a Plex Media Server. In Emby you put the
pictures in yourself.
</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&amp;width=400&amp;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&amp;width=400&amp;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&amp;width=640&amp;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>
<h2>What you need</h2>
<ul>
<li>Emby Server, and Emby's web app open in your browser, signed in as an administrator.</li>
<li>Your Formula 1 videos in a library of the type <strong>TV shows</strong>, in folders as step 1 shows.</li>
<li>For the second way: access to the folders your videos are in.</li>
</ul>
<section class="guide-step">
<h2><span class="num">1.</span> How the library is laid out</h2>
<p>Emby calls the levels of a TV library show, season and episode. The pictures fit this layout, the one the
<a href="../examples/library.html">Library page</a> shows:</p>
<ul>
<li>Every Formula 1 season is a <strong>show</strong>, such as <code>Season 2025</code>.</li>
<li>Every race weekend is a <strong>season</strong> of that show, numbered by its round: the Qatar Grand Prix,
round 23, is season 23.</li>
<li>Every session is an <strong>episode</strong> of that season: the race of a sprint weekend is episode 12.</li>
</ul>
<p>Emby reads the numbers from the names of your folders and files, as its
<a href="https://emby.media/support/articles/TV-Naming.html">TV naming page</a> shows. For example:</p>
<pre class="code">Formula 1 ← the library's folder
└── Season 2025 ← a show: the 2025 season
├── Season 1 ← a season of the show: round 1, Australia
│ └── Season 2025 S01E08 Race.mkv ← episode 8: the race
└── Season 23 ← round 23, Qatar, a sprint weekend
├── Season 2025 S23E06 Sprint.mkv
└── Season 2025 S23E12 Race.mkv</pre>
<details class="more">
<summary>Which episode number is which session</summary>
<p>This is how the Library page and the Plex guide number them. 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> Find a picture's address</h2>
<p>Every picture has its own web address. The Library page lists them all:</p>
<ol class="steps">
<li>Open the <a href="../examples/library.html">Library page</a>. When the site has just started, it can take a
few minutes to load.</li>
<li>Click a season, such as 2025. You see its season poster and one poster per race weekend.</li>
<li>Click a race weekend. You see its race poster and one thumbnail per session.</li>
<li>Under each picture is its address, with a <strong>Copy</strong> button and an <strong>Open</strong> button.</li>
</ol>
<table>
<thead><tr><th>In Emby</th><th>Picture</th><th>Its address, for example</th></tr></thead>
<tbody>
<tr><td>The show “Season 2025”</td><td>Season poster</td>
<td><code>https://f1-circuits.zurag.be/posters/season/2025.png?v=a1</code></td></tr>
<tr><td>Season 23 of it (Qatar)</td><td>Race poster</td>
<td><code>https://f1-circuits.zurag.be/posters/race/Qatar%20Grand%20Prix/2025.png?v=a1</code></td></tr>
<tr><td>Episode 12 of season 23 (the race)</td><td>Session thumbnail</td>
<td><code>https://f1-circuits.zurag.be/posters/session/Qatar%20Grand%20Prix/2025/race.png?v=a1</code></td></tr>
</tbody>
</table>
</section>
<section class="guide-step">
<h2><span class="num">3a.</span> The first way: by hand in Emby</h2>
<p>Nothing to install, nothing to save. Do this for the show, then for each race weekend, then for each session you
want a picture on.</p>
<ol class="steps">
<li>Copy the picture's address from the Library page (step 2).</li>
<li>In Emby's web app, open your Formula 1 library and find the show, race weekend or session.</li>
<li>On its picture, click <strong>⋯</strong> and choose <strong>Edit Images</strong>.</li>
<li>On the picture marked <strong>Primary</strong>, click <strong>⋯</strong> and choose
<strong>Set Image from URL</strong>.</li>
<li>Paste the address and confirm.</li>
</ol>
<p class="see">You should see: the Formula 1 picture on the item, in place of the old one.</p>
<p class="hint">A season has over 20 race weekends and over 200 sessions. By hand suits the show and the race
weekends; for every session, the second way with the script at the end of this page is faster.</p>
</section>
<section class="guide-step">
<h2><span class="num">3b.</span> The second way: picture files next to your videos</h2>
<p>Emby reads pictures that sit in your folders under these names (its
<a href="https://emby.media/support/articles/TV-Naming.html">TV naming page</a>, “Series &amp; Season Images” and
“Episode Images”):</p>
<table>
<thead><tr><th>For</th><th>Save the picture as</th><th>In the folder</th></tr></thead>
<tbody>
<tr><td>The show</td><td><code>folder.png</code></td><td>of the show: <code>Season 2025</code></td></tr>
<tr><td>A race weekend</td><td><code>folder.png</code></td><td>of the race weekend: <code>Season 23</code></td></tr>
<tr><td>A session</td><td>the video's name, with <code>-thumb.png</code> in place of its ending:
<code>Season 2025 S23E12 Race-thumb.png</code></td><td>next to the video</td></tr>
</tbody>
</table>
<ol class="steps">
<li>On the Library page (step 2), click <strong>Open</strong> under the picture. It opens on its own.</li>
<li>Right-click the picture and choose <strong>Save Image As</strong> (the words differ a little per browser).</li>
<li>Save it in the folder, under the name, that the table gives.</li>
<li>When the folder has its pictures: in Emby, on the show's picture, click <strong>⋯</strong> and choose
<strong>Refresh Metadata</strong>.</li>
<li>Set <strong>Refresh mode</strong> to <strong>Search for missing metadata</strong>, leave
<strong>Replace existing images</strong> off, and click <strong>Refresh</strong>.</li>
</ol>
<p class="see">You should see: the show, its race weekends and its sessions with the pictures you saved.</p>
<p class="hint">Emby also reads <code>poster.png</code> for a show or race weekend, and
<code>season23-poster.png</code> for round 23 when it sits in the show's folder. It looks for
<code>folder</code> first.</p>
</section>
<section class="guide-step">
<h2><span class="num">4.</span> When the pictures get a new look</h2>
<p>Emby keeps the picture it was given. When the pictures get a new look, they get new addresses (the Library page
always shows the current ones). Put the new ones in the same way: by hand (step 3a), or by saving the files again
and refreshing (step 3b).</p>
<p class="notice">Never switch on <strong>Replace existing images</strong> in Refresh Metadata for this library.
Emby then deletes the item's pictures, your own included, and downloads new ones from the online databases it
uses (<a href="https://emby.media/support/articles/Metadata-manager.html">Emby's metadata manager page</a>).</p>
</section>
<h2>If it doesn't work</h2>
<ul>
<li><strong>A picture you saved does not show.</strong> Check its name and folder against the table in step 3b,
and that it ends in <code>.png</code> or <code>.jpg</code>. Then, on the library itself, click <strong>⋯</strong>
and choose <strong>Scan Library Files</strong>.</li>
<li><strong>A race poster sits on the wrong race weekend.</strong> Emby's season number must be the round: check
the folder's name (<code>Season 23</code>) or the <code>S23</code> in the file names.</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>Your pictures were replaced.</strong> A refresh with <strong>Replace existing images</strong> on does
that. Put them in again (step 3a or 3b).</li>
<li><strong>Set Image from URL does nothing.</strong> Emby fetches the picture from this site itself, so the
computer Emby 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>
</ul>
<h2>For the technically minded</h2>
<h3>The pictures</h3>
<ul>
<li>Three routes, each a plain <code>GET</code>, no key: <code>/posters/season/{season}.png</code> (1000×1500),
<code>/posters/race/{race name}/{season}.png</code> (1000×1500) and
<code>/posters/session/{race name}/{season}/{session}.png</code> (1920×1080). The sessions are <code>fp1</code>,
<code>fp2</code>, <code>fp3</code>, <code>pre-qualifying</code>, <code>qualifying</code>,
<code>post-qualifying</code>, <code>pre-race</code>, <code>race</code>, <code>post-race</code>,
<code>highlights</code>, <code>pre-sprint-qualifying</code>, <code>sprint-qualifying</code>,
<code>post-sprint-qualifying</code>, <code>pre-sprint</code>, <code>sprint</code>, <code>post-sprint</code> and
<code>bonus</code>.</li>
<li>A race name is Jolpica's, its spaces and other characters encoded: <code>Qatar%20Grand%20Prix</code>,
<code>S%C3%A3o%20Paulo%20Grand%20Prix</code>.</li>
<li>Options as query parameters, such as <code>format=jpg</code> (smaller files; the address keeps its
<code>.png</code>), <code>width=600</code>, <code>style=minimal</code> and <code>bg=photo</code>. Try every option
in the <a href="../examples/builder.html">poster builder</a>; the <a href="https://f1-circuits.zurag.be/docs">API
reference</a> lists them.</li>
<li><code>?v=a1</code> is the address version. An address that carries it is kept by clients for good; it is raised
when the look changes. The <a href="https://f1-circuits.zurag.be/kometa/formula-1-metadata.yml">Kometa file</a>
always carries the current one, and lists every picture's address per season, round and episode number.</li>
</ul>
<h3>A whole season as files, with a script</h3>
<p>For Linux, macOS or a NAS with a shell. It reads the season's addresses from the Kometa file and saves, as JPEG,
<code>folder.jpg</code> in the show's folder, <code>seasonNN-poster.jpg</code> per round next to it, and
<code>&lt;video&gt;-thumb.jpg</code> next to every video whose name carries its round and episode
(<code>S23E12</code> or <code>23x12</code>). Keep one picture per item: delete a <code>.png</code> you saved by hand
for the same item. Then refresh as in step 3b.</p>
<div class="copy"><code>#!/bin/sh
# Usage: f1-emby-art.sh 2025 "/media/Formula 1/Season 2025"
season=$1 show=$2 api=https://f1-circuits.zurag.be opts=format=jpg
# Every address of the season: "round episode address", 0 for the show's or a round's own picture.
list=$(curl -fsS "$api/kometa/formula-1-metadata.yml" | awk -v season="$season" '
/^ "Season [0-9]+":/ { on = index($0, "\"Season " season "\":") &gt; 0; round = ep = 0; next }
!on { next }
/^ [0-9]+:$/ { round = $1 + 0; ep = 0; next }
/^ [0-9]+:$/ { ep = $1 + 0; next }
/url_poster:/ { print round, ep, $2 }')
address() { printf '%s\n' "$list" | awk -v r="$1" -v e="$2" -v o="$opts" '$1 == r &amp;&amp; $2 == e { print $3 "&amp;" o }'; }
curl -fsSo "$show/folder.jpg" "$(address 0 0)"
for round in $(printf '%s\n' "$list" | awk '$1 &gt; 0 &amp;&amp; $2 == 0 { print $1 }'); do
curl -fsSo "$show/$(printf 'season%02d-poster.jpg' "$round")" "$(address "$round" 0)"
done
find "$show" -type f | grep -Ei '\.(mkv|mp4|m4v|ts|avi|mov|webm)$' | while IFS= read -r file; do
set -- $(printf '%s\n' "${file##*/}" | sed -nE -e 's/.*[Ss]([0-9]+)[Ee]([0-9]+).*/\1 \2/p' -e t \
-e 's/^(.*[^0-9])?([0-9]+)x([0-9]+)([^0-9].*)?$/\2 \3/p')
[ $# = 2 ] &amp;&amp; url=$(address "$1" "$2") &amp;&amp; [ -n "$url" ] &amp;&amp; curl -fsSo "${file%.*}-thumb.jpg" "$url"
done</code></div>
<h3>Through Emby's API</h3>
<p>Emby downloads a picture from an address onto an item with
<a href="https://dev.emby.media/reference/RestAPI/RemoteImageService/postItemsByIdRemoteimagesDownload.html"><code>POST
/Items/{Id}/RemoteImages/Download</code></a>, with <code>Type</code> (<code>Primary</code> for the show's, a
season's and an episode's picture) and <code>ImageUrl</code> in the query. It needs an administrator: make an
<a href="https://dev.emby.media/doc/restapi/API-Key-Authentication.html">API key</a> in the server dashboard
(Advanced, Security, Add) and send it in the <code>X-Emby-Token</code> header.</p>
<div class="copy"><code>EMBY=http://localhost:8096/emby
KEY=your-api-key
# The show's Id: search the library for it
curl -fsS -H "X-Emby-Token: $KEY" "$EMBY/Items?IncludeItemTypes=Series&amp;Recursive=true&amp;SearchTerm=Season%202025"
# Its seasons (IndexNumber is the round) and one season's episodes (IndexNumber is the episode)
curl -fsS -H "X-Emby-Token: $KEY" "$EMBY/Shows/$SHOW/Seasons"
curl -fsS -H "X-Emby-Token: $KEY" "$EMBY/Shows/$SHOW/Episodes?SeasonId=$SEASON"
# Round 23's poster onto its season
curl -fsS -X POST -H "X-Emby-Token: $KEY" -G "$EMBY/Items/$SEASON/RemoteImages/Download" \
--data-urlencode Type=Primary \
--data-urlencode "ImageUrl=https://f1-circuits.zurag.be/posters/race/Qatar%20Grand%20Prix/2025.png?v=a1&amp;format=jpg"</code></div>
<p>Emby keeps the copy it downloaded. When the address version is raised, call it again with the new address.</p>
</main>
<footer class="pager">
<a rel="prev" href="plex.html">← Plex</a>
<span class="home"></span>
<a rel="next" href="index.html">Guides →</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>
+35
View File
@@ -0,0 +1,35 @@
/*
* The guides' one behaviour: a Copy button on every box of text to copy (`.copy`), copying the text of its
* `code` element. Without the script the text stays selectable by hand.
*/
(function () {
'use strict';
async function copy(text, button) {
let done = false;
try {
await navigator.clipboard.writeText(text);
done = true;
} catch {
const area = document.createElement('textarea');
area.value = text;
area.style.cssText = 'position:fixed;opacity:0';
document.body.append(area);
area.select();
try { done = document.execCommand('copy'); } catch { done = false; }
area.remove();
}
button.textContent = done ? 'Copied' : 'Select it and copy';
setTimeout(() => { button.textContent = 'Copy'; }, 1500);
}
for (const box of document.querySelectorAll('.copy')) {
const code = box.querySelector('code');
if (!code) continue;
const button = document.createElement('button');
button.type = 'button';
button.textContent = 'Copy';
button.addEventListener('click', () => copy(code.textContent, button));
box.append(button);
}
})();
+78
View File
@@ -0,0 +1,78 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Guides · F1 Circuits</title>
<meta name="description" content="Step-by-step guides to show the F1 Circuits posters and thumbnails in your Formula 1 library in Plex or Emby.">
<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" aria-current="page">Guides</a>
<a href="plex.html">Plex</a>
<a href="emby.html">Emby</a>
<a href="../examples/index.html">Examples</a>
</nav>
</header>
<main>
<h1>Guides</h1>
<p class="lead">
Give your Formula 1 library a poster for every season, a poster for every race weekend and a picture for every
session. These guides take you through it one step at a time. Pick the media server you use.
</p>
<div class="examples-row">
<figure>
<img src="https://f1-circuits.zurag.be/posters/season/2025.png?v=a1&amp;width=400&amp;format=jpg"
alt="The 2025 season poster" loading="lazy">
<figcaption>A season: the year over a photo of that season's cars.</figcaption>
</figure>
<figure>
<img src="https://f1-circuits.zurag.be/posters/race/Qatar%20Grand%20Prix/2025.png?v=a1&amp;width=400&amp;format=jpg"
alt="The 2025 Qatar Grand Prix poster" loading="lazy">
<figcaption>A race weekend: its round, name, date and track over its circuit.</figcaption>
</figure>
<figure>
<img src="https://f1-circuits.zurag.be/posters/session/Qatar%20Grand%20Prix/2025/race.png?v=a1&amp;width=640&amp;format=jpg"
alt="The thumbnail of the race session of the 2025 Qatar Grand Prix" loading="lazy">
<figcaption>A session: the race, a qualifying or a practice, over the circuit.</figcaption>
</figure>
</div>
<div class="pages">
<a class="page" href="plex.html">
<h3>Plex</h3>
<p>A free helper called Kometa puts every picture in your Plex library and keeps them up to date. You set it up
once.</p>
</a>
<a class="page" href="emby.html">
<h3>Emby</h3>
<p>Set the pictures by hand in Emby's own screens, or save them as picture files next to your videos.</p>
</a>
</div>
<p>
Every picture carries, at its bottom, the credit of the photo or map it is made from, and takes its licence from
them; the <a href="../examples/licences.html">licences page</a> lists every source and its licence.
</p>
</main>
<footer class="pager">
<a rel="prev" href="../examples/index.html">← Examples</a>
<span class="home"></span>
<a rel="next" href="plex.html">Plex →</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>
</body>
</html>
+260
View File
@@ -0,0 +1,260 @@
<!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&amp;width=400&amp;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&amp;width=400&amp;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&amp;width=640&amp;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.0.2.10: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>
+2 -2
View File
@@ -10,8 +10,8 @@
# What the image ships, compiled before the merge: every Python file the service's image copies, and the # What the image ships, compiled before the merge: every Python file the service's image copies, and the
# models it imports. Then the tests in tests/, which need the standard library only: every circuit in # models it imports. Then the tests in tests/, which need the standard library only: every circuit in
# circuits/circuits.json carries one unique ergastId, and a race's circuit resolves by that id, never by # circuits/circuits.json carries one unique ergastId, and a race's circuit resolves by that id, never by
# its name; a failed Jolpica fetch is never kept, a season that is over is read from disk, a throttled # its name; every layout a race from 2020 on draws has a traced line, never a point; a failed Jolpica
# request is asked again; a poster's options, keys, cache headers and store cap, its satellite source, credits and # fetch is never kept, a season that is over is read from disk, a throttled request is asked again; a poster's options, keys, cache headers and store cap, its satellite source, credits and
# licence (poster_options.py and poster_sources.py, standard library only). # licence (poster_options.py and poster_sources.py, standard library only).
# #
# **Said, never passed silently**: the service's dependencies (service/requirements.txt) are the image's to # **Said, never passed silently**: the service's dependencies (service/requirements.txt) are the image's to
+14 -7
View File
@@ -8,9 +8,12 @@ import re
from dataclasses import dataclass from dataclasses import dataclass
from typing import Iterable, Optional from typing import Iterable, Optional
# Part of every layer's and every finished picture's key: raised when what a picture looks like changes, so no # Part of every layer's and every finished picture's key: raised only when the drawing itself changes, so no
# picture made before is served again. r3: licensed sources, kept layers, options and credits. # picture made before is served again. r3: licensed sources, kept layers, options and credits.
RENDER_VERSION = "r3" RENDER_VERSION = "r3"
# Carried by the address clients are given (?v=), separate from RENDER_VERSION: raised when a look changes, so clients
# load the address again, served from the pictures already kept. a1: every season poster changed (the season photos).
ADDRESS_VERSION = "a1"
# A frame is the picture's own size: a poster (race and season) and a session thumbnail. # A frame is the picture's own size: a poster (race and season) and a session thumbnail.
FRAMES = {"poster": (1000, 1500), "thumb": (1920, 1080)} FRAMES = {"poster": (1000, 1500), "thumb": (1920, 1080)}
@@ -69,7 +72,7 @@ class Options:
accent: str accent: str
width: int width: int
format: str format: str
versioned: bool # the address carries the current render version (?v=) versioned: bool # the address carries the current address version (?v=)
def canonical(self) -> str: def canonical(self) -> str:
"""The options as they are drawn, the style resolved: two addresses that draw the same picture match.""" """The options as they are drawn, the style resolved: two addresses that draw the same picture match."""
@@ -157,7 +160,7 @@ def parse_options(items: Iterable[tuple[str, str]], kind: str) -> Options:
fmt = _choice("format", given.get("format", "png"), tuple(FORMATS)) fmt = _choice("format", given.get("format", "png"), tuple(FORMATS))
return Options(style=style, bg=bg, photo=photo, show=show, locator=locator, checker=checker, track=track, return Options(style=style, bg=bg, photo=photo, show=show, locator=locator, checker=checker, track=track,
dim=dim, accent=accent, width=width, format=fmt, versioned=given.get("v") == RENDER_VERSION) dim=dim, accent=accent, width=width, format=fmt, versioned=given.get("v") == ADDRESS_VERSION)
# ------------------------------------------------------------------ keys # ------------------------------------------------------------------ keys
@@ -184,17 +187,21 @@ def outline_layer_key(trace: str, frame: str, zoom: int) -> str:
return f"outline/{trace}-{frame}-z{zoom}" return f"outline/{trace}-{frame}-z{zoom}"
def finished_key(route: str, options: Options, layer_keys: Iterable[str]) -> str: def finished_key(route: str, options: Options, layer_keys: Iterable[str], picked: Iterable[str] = ()) -> str:
"""A finished picture's name in the store: its route, its options and the keys of the layers it was made from.""" """A finished picture's name in the store: its route, its options, the keys of the layers it was made from, and
every text it draws from a pick (a photo's credit), so a changed credit makes a new key (docs/posters.md,
principle 2). A picture drawn from no pick keeps the key it had before: nothing is added for it."""
made_of = "|".join(sorted(layer_keys)) made_of = "|".join(sorted(layer_keys))
digest = hashlib.sha256(f"{RENDER_VERSION}\n{route}\n{options.canonical()}\n{made_of}".encode()).hexdigest() texts = "\n".join(text for text in picked if text)
drawn = f"\n{texts}" if texts else ""
digest = hashlib.sha256(f"{RENDER_VERSION}\n{route}\n{options.canonical()}\n{made_of}{drawn}".encode()).hexdigest()
return f"{digest[:40]}.{options.format}" return f"{digest[:40]}.{options.format}"
# ------------------------------------------------------------------ what clients keep # ------------------------------------------------------------------ what clients keep
def cache_headers(kept: bool, versioned: bool, etag: str) -> dict[str, str]: def cache_headers(kept: bool, versioned: bool, etag: str) -> dict[str, str]:
"""An address with the current render version is kept for good; any other a day, asked again with its ETag; """An address with the current address version is kept for good; any other a day, asked again with its ETag;
a picture served without its layer five minutes, with no ETag.""" a picture served without its layer five minutes, with no ETag."""
if not kept: if not kept:
return {"Cache-Control": "public, max-age=300"} return {"Cache-Control": "public, max-age=300"}
+2 -1
View File
@@ -273,7 +273,8 @@ def pick_credit(pick: dict) -> str:
def pick_share(pick: dict) -> Optional[str]: def pick_share(pick: dict) -> Optional[str]:
"""A CC BY-SA photo (2.0, 3.0, 3.0 DE, 4.0: each allows a later version) makes its picture CC BY-SA 4.0.""" """A CC BY-SA photo (2.0, 2.5, 3.0, 4.0 and the ported 2.0 DE, 3.0 DE, 3.0 NL: each allows a later version)
makes its picture CC BY-SA 4.0."""
return BY_SA if re.match(r"^CC[- ]BY-SA\b", (pick.get("licence") or "").strip(), re.IGNORECASE) else None return BY_SA if re.match(r"^CC[- ]BY-SA\b", (pick.get("licence") or "").strip(), re.IGNORECASE) else None
+10 -7
View File
@@ -421,11 +421,13 @@ class Rendered:
@dataclass @dataclass
class Layer: class Layer:
"""One layer a picture is made from: its key, its credit, what its source asks of the picture (share-alike or """One layer a picture is made from: its key, its credit, what its source asks of the picture (share-alike or
not), and how to get it (from the store, or made now).""" not), how to get it (from the store, or made now), and whether it is a pick's photo, whose credit the finished
picture's key names (a map's credit follows its source, which its key already names)."""
key: str key: str
credit: str credit: str
share: Optional[str] share: Optional[str]
get: Callable[[], Optional[Image.Image]] get: Callable[[], Optional[Image.Image]]
from_pick: bool = False
class PostersService: class PostersService:
@@ -534,7 +536,7 @@ class PostersService:
credit, share = ps.pick_credit(pick), ps.pick_share(pick) credit, share = ps.pick_credit(pick), ps.pick_share(pick)
info = self.commons.info(pick["file"]) info = self.commons.info(pick["file"])
if info is None: # no key without its SHA-1: served without the photo, and asked again next time if info is None: # no key without its SHA-1: served without the photo, and asked again next time
return Layer(f"photo/{pick['file']}?", credit, share, lambda: None) return Layer(f"photo/{pick['file']}?", credit, share, lambda: None, from_pick=True)
key = po.photo_layer_key(pick["file"], info["sha1"], frame) key = po.photo_layer_key(pick["file"], info["sha1"], frame)
def make(): def make():
@@ -547,7 +549,7 @@ class PostersService:
logger.warning(f"Commons file {pick['file']!r} unreadable: {e}") logger.warning(f"Commons file {pick['file']!r} unreadable: {e}")
return None return None
return cover(img, po.FRAMES[frame]) # kept untreated: the treatment is drawn on assembly return cover(img, po.FRAMES[frame]) # kept untreated: the treatment is drawn on assembly
return Layer(key, credit, share, lambda: self._kept_or_made(key, "jpg", make)) return Layer(key, credit, share, lambda: self._kept_or_made(key, "jpg", make), from_pick=True)
def _locator_layer(self, geo: Geo) -> Layer: def _locator_layer(self, geo: Geo) -> Layer:
lat, lon = round(geo.lat, 2), round(geo.lon, 2) lat, lon = round(geo.lat, 2), round(geo.lon, 2)
@@ -714,7 +716,8 @@ class PostersService:
A stored picture was made from every layer it names, so its credit line and its licence are theirs.""" A stored picture was made from every layer it names, so its credit line and its licence are theirs."""
layers = [layer for layer in (background, locator) if layer] layers = [layer for layer in (background, locator) if layer]
ps.picture_licence([layer.share for layer in layers]) # a clash of share-alike terms is refused, not drawn ps.picture_licence([layer.share for layer in layers]) # a clash of share-alike terms is refused, not drawn
name = po.finished_key(route, options, [layer.key for layer in layers] + ([outline] if outline else [])) name = po.finished_key(route, options, [layer.key for layer in layers] + ([outline] if outline else []),
[layer.credit for layer in layers if layer.from_pick])
media_type = po.FORMATS[options.format] media_type = po.FORMATS[options.format]
stored = self.store.get(name) stored = self.store.get(name)
if stored is not None: if stored is not None:
@@ -919,12 +922,12 @@ class PostersService:
def render_kometa_metadata(self, first_season: int = 1950, last_offset: int = 1) -> str: def render_kometa_metadata(self, first_season: int = 1950, last_offset: int = 1) -> str:
"""The Kometa metadata YAML for the Formula 1 library, every season from `first_season` through """The Kometa metadata YAML for the Formula 1 library, every season from `first_season` through
current_year + last_offset. Per show: the f1_season builder and the season poster; per Plex season (a current_year + last_offset. Per show: the f1_season builder and the season poster; per Plex season (a
round): its race poster; per episode: its session thumbnail. Every poster address carries the render round): its race poster; per episode: its session thumbnail. Every poster address carries the address
version, so clients keep it for good and a changed look reaches them under a new address.""" version (?v=), so clients keep it for good and a changed look reaches them under a new address."""
from datetime import datetime from datetime import datetime
from urllib.parse import quote from urllib.parse import quote
version = f"?v={po.RENDER_VERSION}" version = f"?v={po.ADDRESS_VERSION}"
last_season = datetime.utcnow().year + last_offset last_season = datetime.utcnow().year + last_offset
lines: list[str] = [ lines: list[str] = [
"# This file's data (race names, rounds, dates) comes from the Jolpica F1 API " "# This file's data (race names, rounds, dates) comes from the Jolpica F1 API "
+545 -1
View File
@@ -1,3 +1,547 @@
{ {
"$comment": "The picked Wikimedia Commons photo per season, from the \"<year> Formula One season cars\" category (docs/posters.md, Season posters and Picking photos). Key: the year, such as \"2024\". Value: {\"file\": the Commons title without \"File:\", \"licence\": its LicenseShortName (CC0, public domain, CC BY or CC BY-SA only), \"author\", \"credit\": \"Photo: <author>, <licence>, via Wikimedia Commons\", \"date\": YYYY[-MM[-DD]]}. Written by the picking tool, read by the poster service; a key starting with \"$\" is a note, not a pick." "$comment": "The picked Wikimedia Commons photo per season, matched to the operator's curated car of that season (docs/posters.md, Season posters and Picking photos; the match per season is in seasons/picks.md). A candidate comes from the \"<year> Formula One season cars\" category or from a search for the curated car by name; the match, in order: the same car, the same model in a livery it raced that season, the same team's car of that season, that season's champion car. Key: the year, such as \"2024\". Value: {\"file\": the Commons title without \"File:\", \"licence\": its LicenseShortName (CC0, public domain, CC BY or CC BY-SA only), \"author\", \"credit\": \"Photo: <author>, <licence>, via Wikimedia Commons\", \"date\": YYYY[-MM[-DD]], when the photo was taken, and, where the date Commons gives cannot be, \"date_from\": \"description\" or \"category\", where the date was read instead, or \"upload\", the month of the file's upload where neither says}. Written by the picking tool, read by the poster service; a key starting with \"$\" is a note, not a pick.",
"1950": {
"file": "Galleria Ferrari (9) (3955971032).jpg",
"licence": "CC BY-SA 2.0",
"author": "János Korom Dr. >11 Million views from Wien, Austria",
"credit": "Photo: János Korom Dr. >11 Million views from Wien, Austria, CC BY-SA 2.0, via Wikimedia Commons",
"date": "2002-04-13"
},
"1951": {
"file": "Ferrari 212 F1.jpg",
"licence": "CC BY 2.0",
"author": "andy carter from England",
"credit": "Photo: andy carter from England, CC BY 2.0, via Wikimedia Commons",
"date": "2008-08-31"
},
"1952": {
"file": "Grote Prijs Nederlandse autoraces Zandvoort. Finish Askari, Bestanddeelnr 905-2692.jpg",
"licence": "CC0",
"author": "Joop van Bilsen / Anefo",
"credit": "Photo: Joop van Bilsen / Anefo, CC0, via Wikimedia Commons",
"date": "1952-08-17"
},
"1953": {
"file": "Goodwood Festival of Speed 2024 (54254822116).jpg",
"licence": "CC BY 2.0",
"author": "Mark from Brighton",
"credit": "Photo: Mark from Brighton, CC BY 2.0, via Wikimedia Commons",
"date": "2024-07-12"
},
"1954": {
"file": "Großer Preis von Europa -1954 Nürburgring, Juan Manuel Fangio, Mercedes (3)x.JPG",
"licence": "CC BY-SA 3.0",
"author": "Agridecumantes",
"credit": "Photo: Agridecumantes, CC BY-SA 3.0, via Wikimedia Commons",
"date": "1954-08-01"
},
"1955": {
"file": "Goodwood Festival of Speed 2015 (26733252225).jpg",
"licence": "CC BY-SA 2.0",
"author": "christianb_7",
"credit": "Photo: christianb_7, CC BY-SA 2.0, via Wikimedia Commons",
"date": "2015-06-28"
},
"1956": {
"file": "Lancia D50 of Scuderia Ferrari.jpg",
"licence": "CC BY 2.0",
"author": "Simon Davison from Los Gatos, United States",
"credit": "Photo: Simon Davison from Los Gatos, United States, CC BY 2.0, via Wikimedia Commons",
"date": "2006-08-19"
},
"1957": {
"file": "1957 Maserati 250F (54834214403).jpg",
"licence": "CC BY 4.0",
"author": "David Merrett from Daventry, England",
"credit": "Photo: David Merrett from Daventry, England, CC BY 4.0, via Wikimedia Commons",
"date": "2025-08-22"
},
"1958": {
"file": "1958 Ferrari Dino 246 (54834214458).jpg",
"licence": "CC BY 4.0",
"author": "David Merrett from Daventry, England",
"credit": "Photo: David Merrett from Daventry, England, CC BY 4.0, via Wikimedia Commons",
"date": "2025-08-22"
},
"1959": {
"file": "Autoraces op het circuit van Zandvoort van de Grand Prix Stirling Moss (no.11) t, Bestanddeelnr 910-4129.jpg",
"licence": "CC0",
"author": "Harry Pot / Anefo",
"credit": "Photo: Harry Pot / Anefo, CC0, via Wikimedia Commons",
"date": "1959-05-31"
},
"1960": {
"file": "Millers at Milwaukee 2026 061 (1960 Scarab Formula 1 No. 48).jpg",
"licence": "CC BY-SA 4.0",
"author": "Michael Barera",
"credit": "Photo: Michael Barera, CC BY-SA 4.0, via Wikimedia Commons",
"date": "2026-07-11"
},
"1961": {
"file": "Von Trips and P. Hill at 1961 Dutch Grand Prix.jpg",
"licence": "CC BY-SA 3.0 nl",
"author": "Harry Pot",
"credit": "Photo: Harry Pot, CC BY-SA 3.0 nl, via Wikimedia Commons",
"date": "1961-05-22"
},
"1962": {
"file": "Porsche 804 Solitude Revival 2022 1X7A0078.jpg",
"licence": "CC BY-SA 4.0",
"author": "Alexander Migl",
"credit": "Photo: Alexander Migl, CC BY-SA 4.0, via Wikimedia Commons",
"date": "2022-07-17"
},
"1963": {
"file": "1963 Lotus 25 R4 (54833107267).jpg",
"licence": "CC BY 4.0",
"author": "David Merrett from Daventry, England",
"credit": "Photo: David Merrett from Daventry, England, CC BY 4.0, via Wikimedia Commons",
"date": "2025-08-22"
},
"1964": {
"file": "John Surtees Ferrari 158 at Goodwood 2014 001.jpg",
"licence": "CC BY-SA 2.0",
"author": "Nic Redhead",
"credit": "Photo: Nic Redhead, CC BY-SA 2.0, via Wikimedia Commons",
"date": "2014-06-29"
},
"1965": {
"file": "Honda RA272 (Hikaru Miyagi).jpg",
"licence": "CC BY 2.0",
"author": "Norimasa Hayashida",
"credit": "Photo: Norimasa Hayashida, CC BY 2.0, via Wikimedia Commons",
"date": "2012-10-07"
},
"1966": {
"file": "Brabham BT19, NSM, 2008 vertical.JPG",
"licence": "CC BY-SA 3.0",
"author": "Bahnfrend",
"credit": "Photo: Bahnfrend, CC BY-SA 3.0, via Wikimedia Commons",
"date": "2008-04-23"
},
"1967": {
"file": "1967 Cooper-Maserati T86 191599250.jpg",
"licence": "CC BY 2.0",
"author": "edvvc from London, UK",
"credit": "Photo: edvvc from London, UK, CC BY 2.0, via Wikimedia Commons",
"date": "2006-07-09"
},
"1968": {
"file": "Stewart, J., Matra MS10, 2. Rd 1968-08-04 v2.jpg",
"licence": "CC BY-SA 2.0 de",
"author": "Spurzem - Lothar Spurzem; Image modified by xavax",
"credit": "Photo: Spurzem - Lothar Spurzem; Image modified by xavax, CC BY-SA 2.0 de, via Wikimedia Commons",
"date": "1968-08-04"
},
"1969": {
"file": "Jochen Rindt 1969 German GP.jpg",
"licence": "CC BY-SA 2.0 de",
"author": "Lothar Spurzem",
"credit": "Photo: Lothar Spurzem, CC BY-SA 2.0 de, via Wikimedia Commons",
"date": "1969-08-01"
},
"1970": {
"file": "Rindt at 1970 Dutch Grand Prix.jpg",
"licence": "CC BY-SA 3.0 nl",
"author": "Evers, Joost / Anefo / neg. stroken, 1945-1989, 2.24.01.05, item number 923-6110",
"credit": "Photo: Evers, Joost / Anefo / neg. stroken, 1945-1989, 2.24.01.05, item number 923-6110, CC BY-SA 3.0 nl, via Wikimedia Commons",
"date": "1970-06-21"
},
"1971": {
"file": "1971 Emerson Fittipaldi, Lotus 72 (kl).JPG",
"licence": "CC BY-SA 3.0 de",
"author": "Lothar Spurzem",
"credit": "Photo: Lothar Spurzem, CC BY-SA 3.0 de, via Wikimedia Commons",
"date": "1971"
},
"1972": {
"file": "1972 Lotus 72D (54834288360).jpg",
"licence": "CC BY 4.0",
"author": "David Merrett from Daventry, England",
"credit": "Photo: David Merrett from Daventry, England, CC BY 4.0, via Wikimedia Commons",
"date": "2025-08-22"
},
"1973": {
"file": "Ferrari 312B2 Jacky Ickx 2010 Canada.jpg",
"licence": "CC BY-SA 2.0",
"author": "Mark McArdle",
"credit": "Photo: Mark McArdle, CC BY-SA 2.0, via Wikimedia Commons",
"date": "2010-06-11"
},
"1974": {
"file": "Franschhoek Motor Museum (30524452055).jpg",
"licence": "CC BY 2.0",
"author": "naeem mayet",
"credit": "Photo: naeem mayet, CC BY 2.0, via Wikimedia Commons",
"date": "2016-10-23"
},
"1975": {
"file": "Jean-Pierre Jarier Shadow DN5 2019 Silverstone Classic (48557920447).jpg",
"licence": "CC BY 2.0",
"author": "https://www.flickr.com/photos/davehamster/",
"credit": "Photo: https://www.flickr.com/photos/davehamster/, CC BY 2.0, via Wikimedia Commons",
"date": "2019-07-26"
},
"1976": {
"file": "James Hunt - McLaren M23 - 1976 Race of Champions, Brands Hatch.jpg",
"licence": "CC BY-SA 2.0",
"author": "Martin Lee",
"credit": "Photo: Martin Lee, CC BY-SA 2.0, via Wikimedia Commons",
"date": "1976-03-14"
},
"1977": {
"file": "Jean-Pierre Jarier - Penske PC4 at Tabac at the 1977 Monaco GP.jpg",
"licence": "CC BY-SA 2.0",
"author": "Martin Lee",
"credit": "Photo: Martin Lee, CC BY-SA 2.0, via Wikimedia Commons",
"date": "1977-05-22"
},
"1978": {
"file": "Riccardo Patrese - Arrows FA1 at Druids at the 1978 British Grand Prix (50050521097).jpg",
"licence": "CC BY-SA 2.0",
"author": "Martin Lee from London, UK",
"credit": "Photo: Martin Lee from London, UK, CC BY-SA 2.0, via Wikimedia Commons",
"date": "1978-07-16",
"date_from": "description"
},
"1979": {
"file": "FoS20162016 0624 103601AA (27851813796).jpg",
"licence": "CC BY-SA 2.0",
"author": "Matthew Lamb",
"credit": "Photo: Matthew Lamb, CC BY-SA 2.0, via Wikimedia Commons",
"date": "2016-06-24"
},
"1980": {
"file": "Ferrari 312T5 Gilles Villeneuve 2010 Canada 1.jpg",
"licence": "CC BY-SA 2.0",
"author": "Mark McArdle",
"credit": "Photo: Mark McArdle, CC BY-SA 2.0, via Wikimedia Commons",
"date": "2010-06-11"
},
"1981": {
"file": "McLaren MP4 at Silverstone Classic 2011 (1).jpg",
"licence": "CC BY 2.0",
"author": "David Merrett from Daventry, England",
"credit": "Photo: David Merrett from Daventry, England, CC BY 2.0, via Wikimedia Commons",
"date": "2011-07-22"
},
"1982": {
"file": "Rene Arnoux 1982 British GP.jpg",
"licence": "CC BY-SA 2.0",
"author": "Martin Lee",
"credit": "Photo: Martin Lee, CC BY-SA 2.0, via Wikimedia Commons",
"date": "1982-07-18"
},
"1983": {
"file": "Renault RE40 (30428152663).jpg",
"licence": "CC BY-SA 2.0",
"author": "Alexandre Prévot from Nancy, France",
"credit": "Photo: Alexandre Prévot from Nancy, France, CC BY-SA 2.0, via Wikimedia Commons",
"date": "2016-02-03"
},
"1984": {
"file": "Lotus 95T Classic-Days 2022 DSC 0141.jpg",
"licence": "CC BY-SA 4.0",
"author": "Alexander Migl",
"credit": "Photo: Alexander Migl, CC BY-SA 4.0, via Wikimedia Commons",
"date": "2022",
"date_from": "description"
},
"1985": {
"file": "1985 European GP Rosberg.jpg",
"licence": "CC BY-SA 2.0",
"author": "Jerry Lewis-Evans",
"credit": "Photo: Jerry Lewis-Evans, CC BY-SA 2.0, via Wikimedia Commons",
"date": "1985-10-04"
},
"1986": {
"file": "Lotus 98T Donington 2007.jpg",
"licence": "CC BY 2.0",
"author": "Darren",
"credit": "Photo: Darren, CC BY 2.0, via Wikimedia Commons",
"date": "2007-09-09"
},
"1987": {
"file": "Ferrari F187 (1987) (22031030520).jpg",
"licence": "CC BY-SA 2.0",
"author": "Takayuki Suzuki from Kanagawa, Japan",
"credit": "Photo: Takayuki Suzuki from Kanagawa, Japan, CC BY-SA 2.0, via Wikimedia Commons",
"date": "2015-09-27"
},
"1988": {
"file": "Ayrton Senna in 1988.jpg",
"licence": "CC BY 2.0",
"author": "Instituto Ayrton Senna",
"credit": "Photo: Instituto Ayrton Senna, CC BY 2.0, via Wikimedia Commons",
"date": "1988",
"date_from": "description"
},
"1989": {
"file": "Musée Lamborghini 0078.JPG",
"licence": "CC BY-SA 3.0",
"author": "Arnaud 25",
"credit": "Photo: Arnaud 25, CC BY-SA 3.0, via Wikimedia Commons",
"date": "2012-08",
"date_from": "upload"
},
"1990": {
"file": "McLaren MP4-5B front-right Honda Collection Hall.jpg",
"licence": "CC BY-SA 3.0",
"author": "Morio",
"credit": "Photo: Morio, CC BY-SA 3.0, via Wikimedia Commons",
"date": "2012-07-16"
},
"1991": {
"file": "Bertrand Gachot 1991 USA.jpg",
"licence": "CC BY 2.0",
"author": "Stuart Seeger from College Station, Texas, USA",
"credit": "Photo: Stuart Seeger from College Station, Texas, USA, CC BY 2.0, via Wikimedia Commons",
"date": "1991-03-10",
"date_from": "description"
},
"1992": {
"file": "Ayrton Senna 1992 Monaco.jpg",
"licence": "CC BY 2.0",
"author": "Iwao from Tokyo, Japan",
"credit": "Photo: Iwao from Tokyo, Japan, CC BY 2.0, via Wikimedia Commons",
"date": "1992-05-28"
},
"1993": {
"file": "Alain Prost - Williams FW15C during practice for the 1993 British Grand Prix (33557472711).jpg",
"licence": "CC BY-SA 2.0",
"author": "Martin Lee from London, UK",
"credit": "Photo: Martin Lee from London, UK, CC BY-SA 2.0, via Wikimedia Commons",
"date": "1993"
},
"1994": {
"file": "Williams FW16 front 2017 Williams Conference Centre.jpg",
"licence": "CC BY-SA 4.0",
"author": "Morio",
"credit": "Photo: Morio, CC BY-SA 4.0, via Wikimedia Commons",
"date": "2017-03-18"
},
"1995": {
"file": "Benetton B195 front-left1 2019 Michael Schumacher Private Collection.jpg",
"licence": "CC BY-SA 4.0",
"author": "Morio",
"credit": "Photo: Morio, CC BY-SA 4.0, via Wikimedia Commons",
"date": "2019-05-06"
},
"1996": {
"file": "Rubens Barrichello - Imola 1996.jpg",
"licence": "CC BY-SA 4.0",
"author": "Restu20",
"credit": "Photo: Restu20, CC BY-SA 4.0, via Wikimedia Commons",
"date": "1996-05-03"
},
"1997": {
"file": "Williams FW19 of Jacques Villeneuve, 1997.jpg",
"licence": "CC BY-SA 2.0",
"author": "Phil Guest",
"credit": "Photo: Phil Guest, CC BY-SA 2.0, via Wikimedia Commons",
"date": "2014-04-12"
},
"1998": {
"file": "1998 F1 car Ferrari F300 Goodwood 2009.jpg",
"licence": "CC BY 2.0",
"author": "Brian Snelson from Hockley, Essex, England",
"credit": "Photo: Brian Snelson from Hockley, Essex, England, CC BY 2.0, via Wikimedia Commons",
"date": "2009-07-05"
},
"1999": {
"file": "McLaren MP4-14, Mika Häkkinen (The Loh Collection) 2.jpg",
"licence": "CC BY 4.0",
"author": "MarcelBuehner",
"credit": "Photo: MarcelBuehner, CC BY 4.0, via Wikimedia Commons",
"date": "2024-05-02"
},
"2000": {
"file": "Ferrari F1-2000, Michael Schumacher (53277830647).jpg",
"licence": "CC BY 2.0",
"author": "Thomas Vogt from Paderborn, Deutschland",
"credit": "Photo: Thomas Vogt from Paderborn, Deutschland, CC BY 2.0, via Wikimedia Commons",
"date": "2023-10-01"
},
"2001": {
"file": "Minardi PS01 front 2017 Museo Fernando Alonso.jpg",
"licence": "CC BY-SA 4.0",
"author": "Morio",
"credit": "Photo: Morio, CC BY-SA 4.0, via Wikimedia Commons",
"date": "2017-03-03"
},
"2002": {
"file": "Ferrari F2002 front.jpg",
"licence": "CC BY 2.0",
"author": "pelican-actor",
"credit": "Photo: pelican-actor, CC BY 2.0, via Wikimedia Commons",
"date": "2022-04-29"
},
"2003": {
"file": "Juan Pablo Montoya 2003 Silverstone 10.jpg",
"licence": "CC BY-SA 2.0",
"author": "Martin Lee",
"credit": "Photo: Martin Lee, CC BY-SA 2.0, via Wikimedia Commons",
"date": "2003-07-28"
},
"2004": {
"file": "Renault R24 front 2017 Museo Fernando Alonso.jpg",
"licence": "CC BY-SA 4.0",
"author": "Morio",
"credit": "Photo: Morio, CC BY-SA 4.0, via Wikimedia Commons",
"date": "2017-03-03"
},
"2005": {
"file": "2005 Renault R25 (54834195219).jpg",
"licence": "CC BY 4.0",
"author": "David Merrett from Daventry, England",
"credit": "Photo: David Merrett from Daventry, England, CC BY 4.0, via Wikimedia Commons",
"date": "2025-08-22"
},
"2006": {
"file": "F1 car McLarenMercedes 2006 2.jpg",
"licence": "CC BY-SA 2.5",
"author": "user:AngMoKio",
"credit": "Photo: user:AngMoKio, CC BY-SA 2.5, via Wikimedia Commons",
"date": "2006-11-07"
},
"2007": {
"file": "Goodwood FOS 2008 (2661779792).jpg",
"licence": "CC BY 2.0",
"author": "Mark Woodbury from London, England",
"credit": "Photo: Mark Woodbury from London, England, CC BY 2.0, via Wikimedia Commons",
"date": "2008-07-11"
},
"2008": {
"file": "Red Bull RB4 front Donington Grand Prix Collection.jpg",
"licence": "CC BY-SA 3.0",
"author": "Morio",
"credit": "Photo: Morio, CC BY-SA 3.0, via Wikimedia Commons",
"date": "2013-03-07"
},
"2009": {
"file": "Nakajima 2009 Spain.jpg",
"licence": "CC BY 2.0",
"author": "Jose Mª Izquierdo Galiot",
"credit": "Photo: Jose Mª Izquierdo Galiot, CC BY 2.0, via Wikimedia Commons",
"date": "2009-05-08"
},
"2010": {
"file": "Jenson Button 2010 Britain.jpg",
"licence": "CC BY 2.0",
"author": "First Stop from UK",
"credit": "Photo: First Stop from UK, CC BY 2.0, via Wikimedia Commons",
"date": "2010-07-09"
},
"2011": {
"file": "Jenson Button 2011 Malaysia FP3.jpg",
"licence": "CC BY-SA 3.0",
"author": "Morio",
"credit": "Photo: Morio, CC BY-SA 3.0, via Wikimedia Commons",
"date": "2011-04-09"
},
"2012": {
"file": "Mark Webber (7448977618).jpg",
"licence": "CC BY-SA 2.0",
"author": "Nic Redhead from Birmingham, UK",
"credit": "Photo: Nic Redhead from Birmingham, UK, CC BY-SA 2.0, via Wikimedia Commons",
"date": "2012-06-09"
},
"2013": {
"file": "16 Maldonado (9186376054).jpg",
"licence": "CC BY 2.0",
"author": "Steven Jones",
"credit": "Photo: Steven Jones, CC BY 2.0, via Wikimedia Commons",
"date": "2013-06-28"
},
"2014": {
"file": "Lewis Hamilton 2014 Singapore Race(L02).jpg",
"licence": "CC BY-SA 4.0",
"author": "Morio",
"credit": "Photo: Morio, CC BY-SA 4.0, via Wikimedia Commons",
"date": "2014-09-21"
},
"2015": {
"file": "Sebastian Vettel 2015 Malaysia FP2 3.jpg",
"licence": "CC BY-SA 4.0",
"author": "Morio",
"credit": "Photo: Morio, CC BY-SA 4.0, via Wikimedia Commons",
"date": "2015-03-27"
},
"2016": {
"file": "F1 - Renault - Kevin Magnussen (28582684145).jpg",
"licence": "CC BY 2.0",
"author": "Jen_ross83",
"credit": "Photo: Jen_ross83, CC BY 2.0, via Wikimedia Commons",
"date": "2016-07-08"
},
"2017": {
"file": "Ferrari SF70H Vettel Barcelona Test.jpg",
"licence": "CC BY-SA 2.0",
"author": "Artes Max from Spain",
"credit": "Photo: Artes Max from Spain, CC BY-SA 2.0, via Wikimedia Commons",
"date": "2017-02-27"
},
"2018": {
"file": "FIA F1 Austria 2018 Nr. 16 Leclerc.jpg",
"licence": "CC BY-SA 4.0",
"author": "Lukas Raich",
"credit": "Photo: Lukas Raich, CC BY-SA 4.0, via Wikimedia Commons",
"date": "2018-06-29"
},
"2019": {
"file": "Lewis Hamilton's 2019 Mercedes AMG Petronas Motorsport M10 Formula 1 Car (49379927706).jpg",
"licence": "CC BY 2.0",
"author": "David Merrett from Daventry, England",
"credit": "Photo: David Merrett from Daventry, England, CC BY 2.0, via Wikimedia Commons",
"date": "2020-01-11"
},
"2020": {
"file": "Max Verstappen, 2020 pre-season testing (2).jpg",
"licence": "CC BY 2.0",
"author": "Jen Ross",
"credit": "Photo: Jen Ross, CC BY 2.0, via Wikimedia Commons",
"date": "2020-02-21"
},
"2021": {
"file": "FIA F1 Austria 2021 Nr. 5 Vettel.jpg",
"licence": "CC BY-SA 4.0",
"author": "Lukas Raich",
"credit": "Photo: Lukas Raich, CC BY-SA 4.0, via Wikimedia Commons",
"date": "2021-07-02"
},
"2022": {
"file": "FIA F1 Austria 2022 Nr. 1 Verstappen.jpg",
"licence": "CC BY-SA 4.0",
"author": "Lukas Raich",
"credit": "Photo: Lukas Raich, CC BY-SA 4.0, via Wikimedia Commons",
"date": "2022-07-08"
},
"2023": {
"file": "FIA F1 Austria 2023 Nr. 4 (2).jpg",
"licence": "CC BY-SA 4.0",
"author": "Lukas Raich",
"credit": "Photo: Lukas Raich, CC BY-SA 4.0, via Wikimedia Commons",
"date": "2023-06-30"
},
"2024": {
"file": "2024-08-25 Motorsport, Formel 1, Großer Preis der Niederlande 2024 STP 3923 by Stepro.jpg",
"licence": "CC BY-SA 4.0",
"author": "Steffen Prößdorf",
"credit": "Photo: Steffen Prößdorf, CC BY-SA 4.0, via Wikimedia Commons",
"date": "2024-08-25"
},
"2025": {
"file": "FIA F1 Imola 2025 No. 81 Piastri (3) (cropped).jpg",
"licence": "CC BY 4.0",
"author": "Jen_ross83",
"credit": "Photo: Jen_ross83, CC BY 4.0, via Wikimedia Commons",
"date": "2025-05-16"
},
"2026": {
"file": "2026-08-21 Motorsport, Formel 1, Großer Preis der Niederlande 2026 STP 2266.jpg",
"licence": "CC BY-SA 4.0",
"author": "Steffen Prößdorf",
"credit": "Photo: Steffen Prößdorf, CC BY-SA 4.0, via Wikimedia Commons",
"date": "2026-08-21"
}
} }
+90
View File
@@ -0,0 +1,90 @@
# The table of picks: the season photos
The photo each season poster draws (`seasons/photos.json`) and how it matches the operator's curated car of that
season (docs/posters.md, Season posters). The match, in order: `same car`; `same model, other livery` (the same model
in a livery it raced that season); `same team and season` (the same team's car of that season); `champion` (that
season's champion car). A curated photo of another year's car gives way to that season's car. The curated photos
are a private reference: a row names and describes the curated car, never its photo. Licence, author and date of
each pick were read from Commons' own metadata.
Matches: same car 72; same model, other livery 1; same team and season 3; champion 1 (of 77 seasons).
| Year | Curated car | Picked file | Licence | Match | Why |
|:---|:---|:---|:---|:---|:---|
| 2026 | Red Bull with Honda power, #1 (a 2022-2025 car), Bahrain | 2026-08-21 Motorsport, Formel 1, Großer Preis der Niederlande 2026 STP 2266.jpg | CC BY-SA 4.0 | same team and season | The curated car is a pre-2026 Red Bull (Honda on the engine cover; Red Bull runs Ford power in 2026). The lead's answer: Red Bull's 2026 car instead, here Verstappen's RB22. Commons marks the file with a personality-rights notice. |
| 2025 | McLaren MCL39 #81, Oscar Piastri, night race | FIA F1 Imola 2025 No. 81 Piastri (3) (cropped).jpg | CC BY 4.0 | same car | Piastri's #81 MCL39 from the front three-quarters (MCL38 and MCL39 look alike; the operator's year holds). |
| 2024 | Red Bull (Verstappen) beside Aston Martin #14 (Fernando Alonso), Jeddah at night | 2024-08-25 Motorsport, Formel 1, Großer Preis der Niederlande 2024 STP 3923 by Stepro.jpg | CC BY-SA 4.0 | same car | Verstappen's RB20 head-on, the nearer of the two curated cars in the curated view. The 2023 and 2024 liveries are too alike to read the photo's year, so the operator's year holds. Commons marks the file with a personality-rights notice. |
| 2023 | McLaren MCL36 (2022 car), Lando Norris, Interlagos | FIA F1 Austria 2023 Nr. 4 (2).jpg | CC BY-SA 4.0 | same team and season | The curated photo shows a 2022 car: the 2022 São Paulo photos on Commons show the same livery (papaya with a blue band, Darktrace wing), while the 2023 MCL60 is darker with Chrome on the sidepods. By the lead's rule, McLaren's 2023 car instead: Norris's MCL60. |
| 2022 | Red Bull RB18 #1, Max Verstappen, Barcelona | FIA F1 Austria 2022 Nr. 1 Verstappen.jpg | CC BY-SA 4.0 | same car | Verstappen's #1 RB18 from the front three-quarters, the curated view. |
| 2021 | Aston Martin AMR21 #5, Sebastian Vettel, Monaco | FIA F1 Austria 2021 Nr. 5 Vettel.jpg | CC BY-SA 4.0 | same car | Vettel's #5 AMR21 at speed, Cognizant sidepod and helmet in the crop. |
| 2020 | Red Bull RB16 #33, Max Verstappen | Max Verstappen, 2020 pre-season testing (2).jpg | CC BY 2.0 | same car | Verstappen's RB16; the better-framed RB16 photo is Albon's car. |
| 2019 | Mercedes W10 #44, Lewis Hamilton, Melbourne | Lewis Hamilton's 2019 Mercedes AMG Petronas Motorsport M10 Formula 1 Car (49379927706).jpg | CC BY 2.0 | same car | Hamilton's own W10 head-on with its #44 nose (the title says "M10"; the car is the W10). |
| 2018 | Sauber C37 #16, Charles Leclerc (McLaren MCL33 #14 behind), Suzuka | FIA F1 Austria 2018 Nr. 16 Leclerc.jpg | CC BY-SA 4.0 | same car | Leclerc's #16 C37 with the Alfa Romeo engine cover; the Sauber is the curated photo's subject in front. |
| 2017 | Ferrari SF70H #5, Sebastian Vettel | Ferrari SF70H Vettel Barcelona Test.jpg | CC BY-SA 2.0 | same car | Vettel's SF70H from the front three-quarters, the curated view. |
| 2016 | Renault R.S.16 #20, Kevin Magnussen, Singapore | F1 - Renault - Kevin Magnussen (28582684145).jpg | CC BY 2.0 | same car | Magnussen's #20 R.S.16, whole in the crop. |
| 2015 | Ferrari SF15-T, Sebastian Vettel, Spa | Sebastian Vettel 2015 Malaysia FP2 3.jpg | CC BY-SA 4.0 | same car | Vettel's SF15-T: helmet, sidepod and front wheel in the crop. |
| 2014 | Mercedes F1 W05 Hybrid #44, Lewis Hamilton, head-on | Lewis Hamilton 2014 Singapore Race(L02).jpg | CC BY-SA 4.0 | same car | Hamilton's W05 head-on, the curated view. |
| 2013 | Williams FW35 #16, Pastor Maldonado, Jerez test | 16 Maldonado (9186376054).jpg | CC BY 2.0 | same car | Maldonado's #16 FW35 with its PDVSA livery. |
| 2012 | Red Bull RB8, Mark Webber, Barcelona | Mark Webber (7448977618).jpg | CC BY-SA 2.0 | same car | Webber's RB8 at speed; cockpit, helmet and Red Bull sidepod in the crop. |
| 2011 | McLaren MP4-26, Jenson Button | Jenson Button 2011 Malaysia FP3.jpg | CC BY-SA 3.0 | same car | Button's MP4-26 head-on with the Vodafone wing; 1600x923, upscaled 1.6x. |
| 2010 | McLaren MP4-25, Jenson Button | Jenson Button 2010 Britain.jpg | CC BY 2.0 | same car | Button in the MP4-25, helmet, cockpit and Vodafone wing filling the crop. |
| 2009 | Williams FW31 #17, Kazuki Nakajima, Barcelona | Nakajima 2009 Spain.jpg | CC BY 2.0 | same car | The curated photo is this Commons file itself (same picture, compared pixel by pixel at reduced size); taken exactly. 1416x852, upscaled 1.76x. |
| 2008 | Red Bull RB4 #10, Mark Webber | Red Bull RB4 front Donington Grand Prix Collection.jpg | CC BY-SA 3.0 | same car | The RB4 head-on, square 2560x2560, so almost the whole car stays in the crop. |
| 2007 | Ferrari F2007, Kimi Raikkonen | Goodwood FOS 2008 (2661779792).jpg | CC BY 2.0 | same car | An F2007 from the front three-quarters, whole in the crop; Raikkonen's own race photos on Commons are 637 to 1034 px wide. |
| 2006 | McLaren MP4-21 (Emirates, Siemens, Johnnie Walker), white and red helmet (Kimi Raikkonen) | F1 car McLarenMercedes 2006 2.jpg | CC BY-SA 2.5 | same car | The MP4-21 head-on, centred; its sponsors match the curated car's. |
| 2005 | Renault R25, Fernando Alonso | 2005 Renault R25 (54834195219).jpg | CC BY 4.0 | same car | The #5 R25 (Alonso's number) head-on, portrait, 3511x4037. |
| 2004 | Renault R24 #8, Fernando Alonso, Magny-Cours | Renault R24 front 2017 Museo Fernando Alonso.jpg | CC BY-SA 4.0 | same car | Alonso's #8 R24 head-on in his museum; no race photo of his car frames as well. |
| 2003 | Williams FW25, Juan Pablo Montoya, Monaco, head-on | Juan Pablo Montoya 2003 Silverstone 10.jpg | CC BY-SA 2.0 | same car | Montoya's FW25 head-on at speed, the curated view; 1156x937, upscaled 1.6x, still sharp enough at poster size. |
| 2002 | Ferrari F2002 #1, Michael Schumacher | Ferrari F2002 front.jpg | CC BY 2.0 | same car | The #1 F2002 head-on, a portrait photo that fits the poster whole. |
| 2001 | Minardi PS01 #21, Fernando Alonso (European livery) | Minardi PS01 front 2017 Museo Fernando Alonso.jpg | CC BY-SA 4.0 | same car | Alonso's own #21 PS01 head-on; the front view keeps the nose and livery in the crop, a three-quarter view cut into a wheel. |
| 2000 | Ferrari F1-2000 (Marlboro), Michael Schumacher or Rubens Barrichello, 2000 Brazilian GP (the reference's caption) | Ferrari F1-2000, Michael Schumacher (53277830647).jpg | CC BY 2.0 | same car | Schumacher's Ferrari F1-2000 #3 on display, from the front like the reference; nose with the 3, Shell and FedEx fill the crop. No free photo shows it racing |
| 1999 | McLaren MP4/14 Mercedes (West silver and black), probably Mika Häkkinen #1, 1999 Australian GP | McLaren MP4-14, Mika Häkkinen (The Loh Collection) 2.jpg | CC BY 4.0 | same car | Häkkinen's McLaren MP4/14 #1 in the Loh Collection, from the front like the reference, West on the rear wing; nose, the 1 and Mobil in the crop. No free photo shows it racing |
| 1998 | Ferrari F300 (Marlboro), probably Michael Schumacher, in action | 1998 F1 car Ferrari F300 Goodwood 2009.jpg | CC BY 2.0 | same car | a Ferrari F300 running at Goodwood in 2009, head-on in action; nose, Shell and the driver fill the crop. Schumacher's own F300 at the 1998 Spanish GP (12095605603) is a side view whose crop cuts the car |
| 1997 | Williams FW19 Renault (Rothmans), Jacques Villeneuve #3, in action | Williams FW19 of Jacques Villeneuve, 1997.jpg | CC BY-SA 2.0 | same car | Villeneuve's own Williams FW19 #3 in the Rothmans livery of the reference, head-on in a portrait photo: the whole car is in the crop |
| 1996 | Jordan 196 Peugeot (Benson & Hedges gold), Rubens Barrichello or Martin Brundle (helmet not readable), in action | Rubens Barrichello - Imola 1996.jpg | CC BY-SA 4.0 | same car | Barrichello's Jordan 196 at Imola in 1996, side view in action like the reference; the whole car with B&H in the crop, small in the frame |
| 1995 | Benetton B195 Renault (Mild Seven), Michael Schumacher #1, at Monaco | Benetton B195 front-left1 2019 Michael Schumacher Private Collection.jpg | CC BY-SA 4.0 | same car | Schumacher's Benetton B195 #1 in the Mild Seven livery of the reference, in his private collection; the race photos of 1995 (British GP, Bitburger livery) crop to half a car |
| 1994 | Williams FW16 Renault (Rothmans), Ayrton Senna #2, in action | Williams FW16 front 2017 Williams Conference Centre.jpg | CC BY-SA 4.0 | same car | the Williams FW16 #2 in its 1994 Rothmans livery at the Williams Conference Centre; no free photo shows Senna's car racing. Front view: Renault, elf and the 2 fill the crop |
| 1993 | Williams FW15C Renault (Camel, Canon, elf), Alain Prost #2, in action | Alain Prost - Williams FW15C during practice for the 1993 British Grand Prix (33557472711).jpg | CC BY-SA 2.0 | same car | Prost's own Williams FW15C #2 in practice for the 1993 British GP, from the front like the reference; nose with elf and the 2, Prost's helmet in the crop |
| 1992 | McLaren MP4/7A Honda (Marlboro), Ayrton Senna #1, leading Mansell's Williams FW14B #5 at Monaco | Ayrton Senna 1992 Monaco.jpg | CC BY 2.0 | same car | Senna's own McLaren MP4/7A in practice for the 1992 Monaco GP, the reference's race; his helmet and the red and white nose in the crop. Small original (1024x683), upscaled |
| 1991 | Jordan 191 Ford (7Up green and blue), #32 (Bertrand Gachot's number, which Michael Schumacher took at Spa), in action | Bertrand Gachot 1991 USA.jpg | CC BY 2.0 | same car | Gachot's own Jordan 191 #32 at the 1991 United States GP, side view in action like the reference; 7Up, Ireland and the cockpit in the crop. Small original (1229x819), upscaled |
| 1990 | McLaren MP4/5B Honda (Marlboro), Ayrton Senna #27, in action with Berger's car behind | McLaren MP4-5B front-right Honda Collection Hall.jpg | CC BY-SA 3.0 | same car | Senna's McLaren MP4/5B #27 at the Honda Collection Hall; no free photo shows it in action, this one keeps Marlboro, Honda and the 27 in the crop |
| 1989 | Lola LC89 Lamborghini (Larrousse; Camel, BP, Rhône-Poulenc, Espo), probably Philippe Alliot, in action | Musée Lamborghini 0078.JPG | CC BY-SA 3.0 | same car | a Larrousse Lola LC89 Lamborghini of 1989 in the Lamborghini museum, with the reference's Camel, BP, Rhône-Poulenc and Seine Maritime marks; its nose is green and red where the reference's is yellow (GEO/Espo). The only free LC89 photos besides two race starts where it is a speck |
| 1988 | McLaren MP4/4 Honda (Marlboro), Ayrton Senna #12, in action | Ayrton Senna in 1988.jpg | CC BY 2.0 | same car | Senna in his McLaren MP4/4 #12 in a 1988 race, posted by the Instituto Ayrton Senna; nose, 12 and helmet fill the crop. Small original (1219x789), upscaled |
| 1987 | Ferrari F1/87, Gerhard Berger #28, in action | Ferrari F187 (1987) (22031030520).jpg | CC BY-SA 2.0 | same car | Berger's Ferrari F1/87 #28 running at Suzuka in 2015, front three-quarter at a kerb like the reference; cockpit and the 28 nose in the crop |
| 1986 | Lotus 98T Renault (JPS black and gold), Ayrton Senna #12, in action at Spa | Lotus 98T Donington 2007.jpg | CC BY 2.0 | same car | the Lotus 98T #12 in Senna's 1986 JPS livery, running at Donington in 2007; side view in action like the reference. A 1986 race photo on Commons (Lotus 98T of Ayrton Senna, 1986.jpg) came via a 2009 Flickr upload of what looks like an agency shot, so it was not picked |
| 1985 | Williams FW10 Honda (Canon), Keke Rosberg #6, in action | 1985 European GP Rosberg.jpg | CC BY-SA 2.0 | same car | Rosberg's own Williams FW10 #6 at the 1985 European GP, a portrait photo: the whole car in action in the crop |
| 1984 | Lotus 95T (JPS black and gold), Nigel Mansell #12, in action | Lotus 95T Classic-Days 2022 DSC 0141.jpg | CC BY-SA 4.0 | same car | a Lotus 95T in Mansell's 1984 JPS livery (his name on the cockpit), a Commons quality image; the JPS nose and sidepod fill the crop. Mansell's car at the 1984 British GP (10241974846) sits behind the year in the crop |
| 1983 | Renault RE40 (yellow and white, Renault elf), Alain Prost #15, from the front | Renault RE40 (30428152663).jpg | CC BY-SA 2.0 | same car | Prost's Renault RE40 #15 on display, seen from the front like the reference: the nose with the Renault diamond, elf and the 15 fill the crop |
| 1982 | Renault RE30B (yellow and white, Renault elf), René Arnoux #16, in action | Rene Arnoux 1982 British GP.jpg | CC BY-SA 2.0 | same car | Arnoux's own Renault RE30B at the 1982 British GP, in action from the front-left like the reference; the car fills the crop |
| 1981 | McLaren MP4/1 (Marlboro), John Watson #7, 1981 British GP at Silverstone | McLaren MP4 at Silverstone Classic 2011 (1).jpg | CC BY 2.0 | same car | Watson's McLaren MP4/1 #7 (his name on the cockpit) running at Silverstone in 2011; a side view, so the crop keeps the cockpit and Marlboro sidepod, not the nose |
| 1980 | Ferrari 312T5, Gilles Villeneuve #2, in action (Monaco) | Ferrari 312T5 Gilles Villeneuve 2010 Canada 1.jpg | CC BY-SA 2.0 | same car | Villeneuve's Ferrari 312T5 #2 in its 1980 livery, run at Montreal in 2010; front three-quarter at a corner like the reference, nose and cockpit in the crop |
| 1979 | Wolf WR7 (Olympus Cameras black and gold), James Hunt #20, 1979 Argentine GP | FoS20162016 0624 103601AA (27851813796).jpg | CC BY-SA 2.0 | same car | the Wolf WR7 #20 in its 1979 Olympus livery, run at Goodwood 2016; front three-quarter as in the reference, whole car in the crop |
| 1978 | Arrows FA1 (Warsteiner gold and black), Riccardo Patrese #35, at Brands Hatch | Riccardo Patrese - Arrows FA1 at Druids at the 1978 British Grand Prix (50050521097).jpg | CC BY-SA 2.0 | same car | Patrese's own Arrows FA1 #35 at Druids, 1978 British GP, front three-quarter as in the reference; whole car in the crop |
| 1977 | ATS Penske PC4 (yellow ATS livery), Jean-Pierre Jarier #34 | Jean-Pierre Jarier - Penske PC4 at Tabac at the 1977 Monaco GP.jpg | CC BY-SA 2.0 | same car | Jarier's own yellow ATS Penske PC4 at the 1977 Monaco GP, the only free photo of that car; it sits small under a hoarding in the crop but is clearly the yellow ATS. Found by a search for the car by name: the file is not in the "1977 Formula One season cars" category |
| 1976 | McLaren M23 (Marlboro), James Hunt #11, in action; Lauda's Ferrari 312T2 #1 behind | James Hunt - McLaren M23 - 1976 Race of Champions, Brands Hatch.jpg | CC BY-SA 2.0 | same car | Hunt's own 1976 McLaren M23 #11 in action at the 1976 Race of Champions, front three-quarter like the reference; small original (1160x774), upscaled but the car is clear |
| 1975 | Shadow DN5, black UOP colours, number 16, Tom Pryce at the 1975 French Grand Prix (period colour photo) | Jean-Pierre Jarier Shadow DN5 2019 Silverstone Classic (48557920447).jpg | CC BY 2.0 | same car | The Shadow DN5 of Pryce's team-mate Jarier in the same 1975 UOP colours, at the Silverstone Classic 2019 (number 75 here); airbox, stripes and front wing fill the crop. Commons gives the author as the photographer's Flickr address. Found by a search for the car by name: the file is not in the "1975 Formula One season cars" category |
| 1974 | Tyrrell 007, blue Elf colours, number 3, Jody Scheckter (period colour photo) | Franschhoek Motor Museum (30524452055).jpg | CC BY 2.0 | same car | The Tyrrell 007 with number 3 in the Franschhoek Motor Museum (Scheckter's car, his name on its side in a sibling photo), nose-on; the Elf nose, number and Tyrrell Ford lettering fill the crop |
| 1973 | Ferrari 312B2, red and white, number 9, Jacky Ickx early in 1973 (period colour photo) | Ferrari 312B2 Jacky Ickx 2010 Canada.jpg | CC BY-SA 2.0 | same car | Jacky Ickx's Ferrari 312B2 in Scuderia Ferrari's red and white, at the historic race of the 2010 Canadian Grand Prix (number 4, his 1972 number); nose-on, the car fills the crop |
| 1972 | Lotus 72D, black and gold John Player Special, number 32, Emerson Fittipaldi (period colour photo) | 1972 Lotus 72D (54834288360).jpg | CC BY 4.0 | same car | Fittipaldi's 1972 championship Lotus 72D in the same JPS colours, at Silverstone 2025 (number 1 here); nose-on, the whole car in the portrait frame |
| 1971 | Lotus 72 in black and gold John Player Special colours, number 1, Ronnie Peterson at Monaco: a 1974 car (the 72E), not one of 1971 | 1971 Emerson Fittipaldi, Lotus 72 (kl).JPG | CC BY-SA 3.0 de | same model, other livery | The same model in the colours Team Lotus raced in 1971: Gold Leaf Team Lotus, Emerson Fittipaldi's 72D, number 8, in practice for the 1971 German Grand Prix (period colour). Only a 1217-pixel copy exists on Commons; soft on the poster but the livery, name and number read |
| 1970 | Lotus 72, Gold Leaf red and gold, number 10, Jochen Rindt at the 1970 Dutch Grand Prix (period colour photo) | Rindt at 1970 Dutch Grand Prix.jpg | CC BY-SA 3.0 nl | same car | Rindt's Lotus 72, number 10, at the same race, 21 June 1970 (black and white); the wedge nose, number and driver fill the crop |
| 1969 | Lotus 49B, Gold Leaf red, white and gold with its rear wing, airborne at the 1969 German Grand Prix (period colour photo) | Jochen Rindt 1969 German GP.jpg | CC BY-SA 2.0 de | same car | Rindt's Lotus 49B, number 2, in practice for the same race, 1 August 1969 (period colour); livery, wing and driver in the crop |
| 1968 | Matra MS10 of Matra International, blue, number 6, Jackie Stewart winning the wet 1968 German Grand Prix (period colour photo) | Stewart, J., Matra MS10, 2. Rd 1968-08-04 v2.jpg | CC BY-SA 2.0 de | same car | Stewart's MS10, number 6, on lap 2 of the same race, 4 August 1968 (period colour, grainy); the number, Elf decal, cockpit and wing read in the crop |
| 1967 | Cooper-Maserati T81 of the Cooper works team, dark green with white stripes, number 3, at the 1967 South African Grand Prix (period colour photo) | 1967 Cooper-Maserati T86 191599250.jpg | CC BY 2.0 | same team and season | The works Cooper-Maserati T86 Jochen Rindt drove in 1967, in the works green with a white stripe, at Goodwood 2006; engine, driver and number in the crop. The only works T81 photo (Rodriguez, Zandvoort 1967 practice, CC0) shows just the windscreen and driver; the blue T81 at Bologna 2016 is not named as Guy Ligier's 1967 entry on Commons or Wikipedia (Ligier raced a T81 at two 1967 rounds) |
| 1966 | Brabham-Repco BT19, green with a gold nose, number 3, Jack Brabham (period colour photo) | Brabham BT19, NSM, 2008 vertical.JPG | CC BY-SA 3.0 | same car | The Brabham BT19 (one chassis was built: Brabham's 1966 championship car) at the National Sports Museum, Melbourne; a portrait photo, nose-on, the whole car in frame |
| 1965 | Honda RA272, white with the red disc, number 12, in a demonstration run | Honda RA272 (Hikaru Miyagi).jpg | CC BY 2.0 | same car | The RA272 in its 1965 Mexican Grand Prix number 12, demonstrated at the 2012 Japanese Grand Prix; small in the frame but whole. (A larger whole-car portrait of number 11, "1965 Honda RA272 2.jpg", is the alternative) |
| 1964 | Ferrari 158, red with pale blue wheels, on track at Goodwood | John Surtees Ferrari 158 at Goodwood 2014 001.jpg | CC BY-SA 2.0 | same car | John Surtees driving his championship-winning 1964 Ferrari 158 at Goodwood 2014; one of the season's candidates; driver, number 2 and blue wheel in the crop |
| 1963 | Lotus 25, green with a yellow stripe and yellow wheels, number 4, Jim Clark at the 1963 British Grand Prix (period colour photo) | 1963 Lotus 25 R4 (54833107267).jpg | CC BY 4.0 | same car | Chassis R4, Clark's 1963 championship Lotus 25, at Silverstone 2025 (number 25 here); nose-on, the whole car in the portrait frame |
| 1962 | Porsche 804, silver, on the hill at the Goodwood Festival of Speed | Porsche 804 Solitude Revival 2022 1X7A0078.jpg | CC BY-SA 4.0 | same car | The Porsche 804 on the move at the Solitude Revival 2022, from the same front three-quarter angle; one of the season's candidates |
| 1961 | Ferrari 156 "sharknose", red, von Trips at the 1961 Dutch Grand Prix (period colour photo) | Von Trips and P. Hill at 1961 Dutch Grand Prix.jpg | CC BY-SA 3.0 nl | same car | Von Trips's Ferrari 156 at the same race, 22 May 1961, Phil Hill's behind (black and white); the sharknose nose and driver fill the crop |
| 1960 | Scarab F1 (Reventlow Automobiles), metallic blue, number 48 | Millers at Milwaukee 2026 061 (1960 Scarab Formula 1 No. 48).jpg | CC BY-SA 4.0 | same car | The 1960 Scarab Formula 1 car number 48 itself, at Milwaukee 2026; a portrait photo, nose-on, the whole car in frame |
| 1959 | Cooper T51 of Rob Walker Racing, dark blue with a white band, number 14, Stirling Moss on the 1959 Italian Grand Prix grid (beside Ferrari Dino 246s) | Autoraces op het circuit van Zandvoort van de Grand Prix Stirling Moss (no.11) t, Bestanddeelnr 910-4129.jpg | CC0 | same car | Moss's own Walker Cooper T51 at the 1959 Dutch Grand Prix (number 11, period black and white); the car comes head-on into the crop. A colour photo of an ex-Walker T51 lost its nose in the crop |
| 1958 | Ferrari 246 F1 (Dino), red, number 2, Mike Hawthorn at the 1958 British Grand Prix (period colour photo) | 1958 Ferrari Dino 246 (54834214458).jpg | CC BY 4.0 | same car | The Ferrari Dino 246 shown as Hawthorn's 1958 championship car at Silverstone 2025 (number 38 here); the car fills the portrait frame |
| 1957 | Maserati 250F, red, number 32, Fangio at the 1957 Monaco Grand Prix | 1957 Maserati 250F (54834214403).jpg | CC BY 4.0 | same car | A red 1957 Maserati 250F with number 32, shown as Fangio's championship-winning car at Silverstone 2025; the whole car fits the portrait frame. Found by a search for the car by name: the file is not in the "1957 Formula One season cars" category |
| 1956 | Lancia-Ferrari D50 of Scuderia Ferrari, red, number 10, Fangio at the 1956 French Grand Prix (period colour photo) | Lancia D50 of Scuderia Ferrari.jpg | CC BY 2.0 | same car | A Lancia D50 in Scuderia Ferrari's form (Commons: Lancia D50 of Scuderia Ferrari), side view: the Ferrari badge, the side pontoon with number 17 and the engine fill the crop. A sharper D50A at Goodwood 2024 wears a green nose band no source dates to 1956, so it was dropped |
| 1955 | Mercedes-Benz W196 (open wheels), silver, a colour photo of a demonstration run | Goodwood Festival of Speed 2015 (26733252225).jpg | CC BY-SA 2.0 | same car | The open-wheel W196 at speed, Stirling Moss driving at Goodwood 2015; its nose, star and driver fill the crop |
| 1954 | Mercedes-Benz W196 (open wheels), silver, number 18, Fangio at the 1954 German Grand Prix (period photo) | Großer Preis von Europa -1954 Nürburgring, Juan Manuel Fangio, Mercedes (3)x.JPG | CC BY-SA 3.0 | same car | Fangio's W196 number 18 at the same race, 1 August 1954, black and white like the curated one; car and driver in the crop's lower half |
| 1953 | Ferrari 500, red, a Swiss entrant's script on the nose, on track at a historic run | Goodwood Festival of Speed 2024 (54254822116).jpg | CC BY 2.0 | same car | A 1952 Ferrari 500 F2 (chassis 0482) on the move at Goodwood 2024, seen from the same front three-quarter angle; nose, wheel and cockpit stay in the crop |
| 1952 | Ferrari 375 Indianapolis "Ferrari Special", red, number 35: Johnny Mauro's Kennedy Tank entry, which failed to qualify for the 1952 Indianapolis 500 | Grote Prijs Nederlandse autoraces Zandvoort. Finish Askari, Bestanddeelnr 905-2692.jpg | CC0 | champion | Alberto Ascari's Ferrari 500, number 2, at the finish of the 1952 Dutch Grand Prix (black and white). The one Commons photo of the red Ferrari Special (Indianapolis Motor Speedway Museum) shows only its lettering in the crop; every other 375 Indy on Commons wears the cream Grant Piston Ring livery, which Wikipedia says Johnnie Parsons meant to race in 1952 but did not, so it is no confirmed 1952 entry; no other Kennedy Tank car exists |
| 1951 | Ferrari 212 F1, red with a white nose band, number 15, on track at a historic meeting | Ferrari 212 F1.jpg | CC BY 2.0 | same car | A 1951 Ferrari 212 F1 in the same red and white livery; the crop keeps its 212 badge, the Ferrari shield and the front wheel |
| 1950 | Ferrari 375 F1, red, on track at Silverstone (a 2011 demonstration) | Galleria Ferrari (9) (3955971032).jpg | CC BY-SA 2.0 | same car | Ascari's Ferrari 375 F1 in the Ferrari museum, seen from above: the whole car fits the portrait crop (Leclerc's 2021 Silverstone run of the same car showed only its middle) |
+2
View File
@@ -30,6 +30,8 @@ COPY circuits/ ./circuits/
COPY seasons/ ./seasons/ COPY seasons/ ./seasons/
# The example site the app serves at /examples/. # The example site the app serves at /examples/.
COPY examples/ ./examples/ COPY examples/ ./examples/
# The guides the app serves at /guides/.
COPY guides/ ./guides/
EXPOSE 8000 EXPOSE 8000
+23
View File
@@ -0,0 +1,23 @@
"""Every directory the service serves is copied into its image: a mount of a directory the image lacks stops the
service at its start (Starlette's StaticFiles checks its directory)."""
import re
import unittest
from pathlib import Path
ROOT = Path(__file__).resolve().parent.parent
class ImageTest(unittest.TestCase):
def test_every_served_directory_is_copied_into_the_image(self):
app = (ROOT / "cdn-api.py").read_text(encoding="utf-8")
served = re.findall(r'StaticFiles\(directory=Path\(__file__\)\.resolve\(\)\.parent / "([^"]+)"', app)
self.assertTrue(served, "cdn-api.py serves no directory")
dockerfile = (ROOT / "service" / "Dockerfile").read_text(encoding="utf-8")
copied = set(re.findall(r"^COPY (\S+)/ \./\1/$", dockerfile, re.M))
self.assertEqual(sorted(set(served) - copied), [], "served by cdn-api.py, not copied by service/Dockerfile")
for directory in served:
self.assertTrue((ROOT / directory / "index.html").is_file(), f"{directory}/ has no index.html")
if __name__ == "__main__":
unittest.main()
+39 -1
View File
@@ -2,6 +2,7 @@
Standard library only (no PIL, no numpy), so the merge check runs it as it is. Standard library only (no PIL, no numpy), so the merge check runs it as it is.
""" """
import hashlib
import json import json
import os import os
import tempfile import tempfile
@@ -80,6 +81,10 @@ class CreditAndLicenceTest(unittest.TestCase):
self.assertEqual(ps.picture_licence(shares), licence, shares) self.assertEqual(ps.picture_licence(shares), licence, shares)
with self.assertRaises(ps.LicenceClash): with self.assertRaises(ps.LicenceClash):
ps.picture_licence([by_sa, ps.eox(2025).share]) ps.picture_licence([by_sa, ps.eox(2025).share])
# 2.5 and the ported licences allow a later version with the same elements, as 2.0 and 3.0 do
for licence in ("CC BY-SA 2.5", "CC BY-SA 2.0 de", "CC BY-SA 3.0 de", "CC BY-SA 3.0 nl"):
self.assertTrue(ps.is_free_licence(licence), licence)
self.assertEqual(ps.picture_licence([ps.pick_share({"licence": licence})]), "CC BY-SA 4.0", licence)
def test_picks_skip_notes_and_refuse_what_they_cannot_use(self): def test_picks_skip_notes_and_refuse_what_they_cannot_use(self):
with tempfile.TemporaryDirectory() as kept: with tempfile.TemporaryDirectory() as kept:
@@ -102,6 +107,28 @@ class CreditAndLicenceTest(unittest.TestCase):
self.assertEqual(len(logged.output), 4) self.assertEqual(len(logged.output), 4)
for name in ("circuits/photos.json", "seasons/photos.json"): for name in ("circuits/photos.json", "seasons/photos.json"):
self.assertEqual(ps.read_picks(ROOT / name).get("$comment"), None, name) self.assertEqual(ps.read_picks(ROOT / name).get("$comment"), None, name)
# Every season from 1950 to 2026 has its picked photo, keyed in year order, and the reader accepts each one
written = json.loads((ROOT / "seasons/photos.json").read_text(encoding="utf-8"))
seasons = [str(year) for year in range(1950, 2027)]
self.assertEqual([key for key in written if not key.startswith("$")], seasons)
self.assertEqual(list(ps.read_picks(ROOT / "seasons/photos.json")), seasons)
for year in seasons: # where the date was read when Commons' own date cannot be when the photo was taken
self.assertIn(written[year].get("date_from", "description"), ("description", "category", "upload"), year)
def test_the_table_of_picks_names_the_match_per_season(self):
"""seasons/picks.md: one row per picked season, newest first, its file and licence those of
seasons/photos.json, its match one of the design's four (docs/posters.md, Season posters)."""
matches = ("same car", "same model, other livery", "same team and season", "champion")
picks = ps.read_picks(ROOT / "seasons/photos.json")
rows = []
for line in (ROOT / "seasons/picks.md").read_text(encoding="utf-8").splitlines():
if line.startswith("| ") and line[2:6].isdigit():
rows.append([cell.strip() for cell in line.strip().strip("|").split(" | ")])
self.assertEqual([row[0] for row in rows], sorted(picks, key=int, reverse=True))
for year, curated, file, licence, match, why in rows:
self.assertEqual((file, licence), (picks[year]["file"], picks[year]["licence"]), year)
self.assertIn(match, matches, year)
self.assertTrue(curated and why, year)
def test_the_picks_routes_answer_the_picks_as_the_service_has_them_loaded(self): def test_the_picks_routes_answer_the_picks_as_the_service_has_them_loaded(self):
photo = {"file": "A.jpg", "licence": "CC BY 4.0", "author": "A", "credit": "Photo: A", "date": "2020"} photo = {"file": "A.jpg", "licence": "CC BY 4.0", "author": "A", "credit": "Photo: A", "date": "2020"}
@@ -157,7 +184,10 @@ class OptionsTest(unittest.TestCase):
# Any option given overrides the style; equal pictures share one canonical form, whatever their address # Any option given overrides the style; equal pictures share one canonical form, whatever their address
self.assertEqual(self.parse("style=minimal&checker=on").checker, True) self.assertEqual(self.parse("style=minimal&checker=on").checker, True)
self.assertEqual(self.parse("bg=aerial&v=r1").canonical(), self.parse("").canonical()) self.assertEqual(self.parse("bg=aerial&v=r1").canonical(), self.parse("").canonical())
self.assertTrue(self.parse(f"v={po.RENDER_VERSION}").versioned) # Kept for good: an address with the address version, never one with the render version it carried before
self.assertTrue(self.parse(f"v={po.ADDRESS_VERSION}").versioned)
self.assertNotEqual(po.ADDRESS_VERSION, po.RENDER_VERSION)
self.assertFalse(self.parse("v=r3").versioned)
self.assertFalse(self.parse("v=r2").versioned) self.assertFalse(self.parse("v=r2").versioned)
def test_an_unknown_option_or_value_is_named(self): def test_an_unknown_option_or_value_is_named(self):
@@ -182,6 +212,14 @@ class OptionsTest(unittest.TestCase):
["map/eox-2016/x-poster-z15-r3"])) ["map/eox-2016/x-poster-z15-r3"]))
self.assertTrue(key.endswith(".png")) self.assertTrue(key.endswith(".png"))
self.assertTrue(po.finished_key("race/Bahrain Grand Prix/2024", self.parse("format=webp"), []).endswith(".webp")) self.assertTrue(po.finished_key("race/Bahrain Grand Prix/2024", self.parse("format=webp"), []).endswith(".webp"))
# A changed credit with the same photo makes a new key; a picture drawn from no pick keeps the key it had
season, photo = self.parse("", "season"), ["photo/a1b2c3-sha1-poster-r3"]
credited = po.finished_key("season/1967", season, photo, ["Photo: A, CC BY 2.0, via Wikimedia Commons"])
self.assertNotEqual(credited, po.finished_key("season/1967", season, photo,
["Photo: B, CC BY 2.0, via Wikimedia Commons"]))
before = hashlib.sha256(f"{po.RENDER_VERSION}\nrace/Bahrain Grand Prix/2024\n{options.canonical()}\n"
"map/eox-2016/x-poster-z15-r3".encode()).hexdigest()
self.assertEqual(key, f"{before[:40]}.png")
self.assertEqual(po.locator_layer_key(26.0325, 50.5106), f"locator/26.03_50.51-{po.RENDER_VERSION}") self.assertEqual(po.locator_layer_key(26.0325, 50.5106), f"locator/26.03_50.51-{po.RENDER_VERSION}")
self.assertIn(po.RENDER_VERSION, po.map_layer_key("eox-2025", po.trace_hash([[1, 2]]), "thumb", 15)) self.assertIn(po.RENDER_VERSION, po.map_layer_key("eox-2025", po.trace_hash([[1, 2]]), "thumb", 15))
+43
View File
@@ -0,0 +1,43 @@
"""Every layout a race from 2020 on draws has a traced line: a layout whose trace is a point or empty is drawn without
a track (docs/posters.md, Layers), so such a trace for a current race fails the merge check.
The layouts are the ones the service picks for a season (CircuitService.find_layout_slug_for_year), read from
circuits.json, never from Jolpica's schedules. Standard library only, so the merge check runs it as it is.
"""
import json
import unittest
from datetime import date
from pathlib import Path
from circuits_service import CircuitService
ROOT = Path(__file__).resolve().parent.parent
FIRST_SEASON = 2020
MIN_POINTS = 10 # more than a few: a point, an empty line or a stub of a line fails
class TraceTest(unittest.TestCase):
def test_every_layout_raced_from_2020_on_has_a_traced_line(self):
service = CircuitService(str(ROOT / "circuits" / "circuits.json"))
drawn = set()
# This season and the next: a layout added for next season's calendar is held from the day it is added.
for season in range(FIRST_SEASON, date.today().year + 2):
for country in service.circuit_data.values():
for locality in country.localities.values():
for circuit in locality.circuits.values():
slug = service.find_layout_slug_for_year(circuit, season)
if slug is not None:
drawn.add(circuit.layouts[slug].relative_geojson_filepath)
self.assertIn(Path("spain/madrid/madring/2026-.geo.json"), drawn) # the newest layout is among them
for path in sorted(drawn):
with self.subTest(layout=str(path)):
geometry = json.loads((ROOT / "circuits" / path).read_text(encoding="utf-8"))["features"][0]["geometry"]
line = geometry["type"] == "LineString"
points = len(geometry["coordinates"]) if line else 0
found = f"a LineString of {points} points" if line else f"a {geometry['type']}"
self.assertGreater(points, MIN_POINTS, f"{path} is {found}, not a traced line of more than "
f"{MIN_POINTS} points")
if __name__ == "__main__":
unittest.main()