nextcloud / nextcloud/cookbook
Gracefully ignore the recipe image if used in graph mode
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 641
- Forks
- 113
- Avg merge
- 21h 31m
- Merged PRs (30d)
- 26
Description
Nextcloud version:
32.0.3.2
Cookbook version:
0.11.8
Recipe URL:
https://www.chefkoch.de/rezepte/1192990086557/Paprikanudeln.html
Problem:
Since today, importing Chefkoch recipes fails.
The recipe file is created, but no recipe data is imported.
Log output:
libxml: Fehler 68:
htmlParseEntityRef: no name
libxml: Fehler 23:
htmlParseEntityRef: expecting ';'
libxml: Fehler 801:
Tag amp-bind-macro invalid
libxml: Fehler 76:
Unexpected end tag : svg
The same Chefkoch URLs worked yesterday.
curl downloads the page successfully.
The page contains valid schema.org JSON-LD recipe data.
Browser: works correctly
curl: works correctly
Only Cookbook import fails
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the import with the Chefkoch URL in the issue and inspect the handling of its schema.org JSON-LD and recipe image in graph mode. The fix is done when malformed image markup is ignored and the remaining recipe data imports successfully without the reported libxml errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100