Skip to content

Fix dagelijksekost title: prefer og:title over schema.org name#2000

Open
Naliath wants to merge 1 commit into
hhursev:mainfrom
Naliath:fix/dagelijksekost-title
Open

Fix dagelijksekost title: prefer og:title over schema.org name#2000
Naliath wants to merge 1 commit into
hhursev:mainfrom
Naliath:fix/dagelijksekost-title

Conversation

@Naliath

@Naliath Naliath commented Jun 12, 2026

Copy link
Copy Markdown

On some dagelijksekost.vrt.be pages the schema.org Recipe name is an SEO teaser sentence rather than the dish name, while the og:title meta tag carries the clean title.

Example — https://dagelijksekost.vrt.be/gerechten/cremeux-citroen-bodem-witte-chocolade-gepofte-rijst-rode-bessen:

  • schema.org name: Jeroen Meus maakt een crémeux van citroen op een bodem van witte chocolade en gepofte rijst, met rode bessen.
  • og:title: Crémeux van citroen, bodem van witte chocolade, gepofte rijst en rode bessen

The existing test fixture (vol-au-vent) happens to have a clean schema name, so the suite never caught this. Other consumers work around it downstream (e.g. tomklaasen/dagelijksekost-paprika reads og:title itself instead of using scraper.title()).

Changes:

  • DagelijkseKost.title() now prefers og:title and falls back to the schema title when the meta tag is absent.
  • Added a second test fixture (the crémeux page above) that exercises the teaser-style schema name; renamed the existing fixture pair to the _1/_2 convention.

Full test suite passes (1110 tests), black/flake8 clean.

🤖 Generated with Claude Code

On some dagelijksekost.vrt.be pages the schema.org Recipe name is an
SEO teaser sentence (e.g. "Jeroen Meus maakt een cremeux van citroen
op een bodem van witte chocolade en gepofte rijst, met rode bessen.")
while the og:title meta tag carries the clean dish name. Prefer
og:title and fall back to the schema title when it is absent.

Adds a second test fixture exercising a page with the teaser-style
schema name; renames the existing fixture to the _1/_2 convention.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant