The FPA destination preset built the game folder and file name from the full
team names ({home} x {away}), e.g. "Vitória SC x AA Águas Santas". FPA expects
the short codes ("VSC x AAAS"). Switch the FPA folder and fileName templates to
{homeShort} x {awayShort}.
Safe by construction: buildVars sets homeShort/awayShort with a `?? home`
fallback, so when an event has no short code the segment is the full name (never
empty, never a missing-variable error). Liga keeps full names on purpose
("1. Casa Pia x Sporting"), so its preset is unchanged.
Test: the FPA fixture now uses distinct full names + short codes, proving the
template renders the short code rather than the full name.
Claude-Session: https://claude.ai/code/session_01RAkmwWv6L5KmpX4h9JPD2i
packages/metadata
Photo Mechanic-style metadata, shared by web, desktop and server.
template.ts:{variable}templates with modifiers ({sport:upper},{n:pad3}).codes.ts: code replacement (\v7\→ "Miguel Silva (VSC)"), imported from tab-separated lists.iptc.ts: the IPTC fields we fill, mapped to IIM and XMP tags;applyTemplateandtoExiftoolArgs.titleholds the names of the people in the photo. IIM length limits are reported, not truncated silently (XMP keeps the full text).vars.ts: the variables every template can use (event, date in Lisbon time, season, players, photographer).paths.ts: folder and file-name templates for deliveries (FPA and Liga examples inDESTINATION_EXAMPLES).
Open point: the target tag for Photo Mechanic's "Creator's Identity" is not mapped yet; confirm it from a file exported by Photo Mechanic.