IPTC: caption becomes «…, em , no» when city/venue are empty (Cofina) #193

Closed
opened 2026-11-06 20:25:13 +00:00 by spark · 1 comment
Owner

Problem

Photos delivered to Cofina with Description/Headline like AFS x FC Vizela, em , no — location and city empty, Portuguese prepositions left dangling. Unusable in the newsroom.

Cause

NEWSROOM_TEMPLATE is {home} x {away}, em {city}, no {venue}. Empty vars are dropped (missing: "drop"), but tidy() only cleaned the dangling x, not , em , no.

Fix

Extend tidy() so missing city/venue leave a coherent caption (event alone, or only the clause that still has data).

Already delivered files need a re-send / IPTC rewrite after deploy.

## Problem Photos delivered to Cofina with Description/Headline like `AFS x FC Vizela, em , no` — location and city empty, Portuguese prepositions left dangling. Unusable in the newsroom. ## Cause `NEWSROOM_TEMPLATE` is `{home} x {away}, em {city}, no {venue}`. Empty vars are dropped (`missing: "drop"`), but `tidy()` only cleaned the dangling `x`, not `, em , no`. ## Fix Extend `tidy()` so missing city/venue leave a coherent caption (event alone, or only the clause that still has data). Already delivered files need a re-send / IPTC rewrite after deploy.
spark closed this issue 2026-11-06 20:25:41 +00:00
Author
Owner

Causa: template {home} x {away}, em {city}, no {venue} com cidade/local vazios → …, em , no.

Corrigido em #194 (merged): a legenda fica só o jogo (ou só o pedaço que ainda tem dados).

Já enviadas à Cofina: o ficheiro no FTP mantém o IPTC antigo até reenviar / reescrever. Encher cidade e local no evento evita legendas sem sítio.

Causa: template `{home} x {away}, em {city}, no {venue}` com cidade/local vazios → `…, em , no`. Corrigido em #194 (merged): a legenda fica só o jogo (ou só o pedaço que ainda tem dados). **Já enviadas à Cofina:** o ficheiro no FTP mantém o IPTC antigo até reenviar / reescrever. Encher cidade e local no evento evita legendas sem sítio.
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: BitReport.pt/photoreport#193