Seed Taça de Portugal (FPF) in sports catalogue — fixtures missing from event picker #285

Closed
opened 2026-11-20 18:10:58 +00:00 by spark · 1 comment
Owner

Problem

Photographers opening Novo evento → Jogo could not find Taça de Portugal football matches (e.g. FC Porto–USC Paredes, 20 Nov 2026 20:45). The list only showed FPA handball.

Cause

  1. Liga Portugal sync only covers Betclic, Meu Super and Allianz Cup — not the Taça de Portugal (FPF).
  2. FPF competitions are opt-in by link, and none were followed on next.
  3. resultados.fpf.pt returns Cloudflare 403 from pr-api (and other CTs), so the worker cannot refresh FPF even after adding the competition.

Immediate fix (done on next DB)

Seeded competition FPF/25263 (season 106) and the 16 fixtures of the 4.ª eliminatória (20–22 Nov), reusing Liga teams where they exist so squads stay available for the big clubs.

Follow-up (code)

  • Seed Taça de Portugal in ensureCatalog like Liga/UEFA/EHF.
  • Teach FpfProvider to parse fixtures from the Details page (this cup does not expose GetClassificationAndMatchesByFixture the same way).
  • Unblock or proxy FPF fetches from the server (Cloudflare), otherwise later rounds still need a manual seed.

Verify

In the app: Novo evento → Jogo → search Porto or Taça — Porto–Paredes should appear for tonight.

## Problem Photographers opening **Novo evento → Jogo** could not find Taça de Portugal football matches (e.g. FC Porto–USC Paredes, 20 Nov 2026 20:45). The list only showed FPA handball. ## Cause 1. Liga Portugal sync only covers Betclic, Meu Super and Allianz Cup — not the Taça de Portugal (FPF). 2. FPF competitions are opt-in by link, and none were followed on next. 3. `resultados.fpf.pt` returns **Cloudflare 403** from pr-api (and other CTs), so the worker cannot refresh FPF even after adding the competition. ## Immediate fix (done on next DB) Seeded competition `FPF/25263` (season `106`) and the **16 fixtures of the 4.ª eliminatória** (20–22 Nov), reusing Liga teams where they exist so squads stay available for the big clubs. ## Follow-up (code) - Seed Taça de Portugal in `ensureCatalog` like Liga/UEFA/EHF. - Teach `FpfProvider` to parse fixtures from the Details page (this cup does not expose `GetClassificationAndMatchesByFixture` the same way). - Unblock or proxy FPF fetches from the server (Cloudflare), otherwise later rounds still need a manual seed. ## Verify In the app: Novo evento → Jogo → search **Porto** or **Taça** — Porto–Paredes should appear for tonight.
Author
Owner

Done on next for tonight.

  • Seeded FPF/25263 (Taça de Portugal, season 106) and all 16 fixtures of the 4.ª eliminatória (20–22 Nov), including FC Porto–USC Paredes today 20:45 at Estádio do Dragão. Liga clubs reuse existing Liga squads.
  • PR with catalogue seed + Details-page parser: #286

In the app: Novo evento → Jogo, search Porto or Taça (refresh the form if it was already open).

Note: resultados.fpf.pt still returns Cloudflare 403 from pr-api, so later rounds will need another seed or an allowlist/proxy until that is fixed.

Done on next for tonight. - Seeded `FPF/25263` (Taça de Portugal, season `106`) and all **16** fixtures of the 4.ª eliminatória (20–22 Nov), including **FC Porto–USC Paredes today 20:45** at Estádio do Dragão. Liga clubs reuse existing Liga squads. - PR with catalogue seed + Details-page parser: https://git.bitreport.pt/BitReport.pt/photoreport/pulls/286 In the app: **Novo evento → Jogo**, search **Porto** or **Taça** (refresh the form if it was already open). Note: `resultados.fpf.pt` still returns Cloudflare 403 from pr-api, so later rounds will need another seed or an allowlist/proxy until that is fixed.
spark closed this issue 2026-11-20 18:51:05 +00:00
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#285