Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Improve Recipe Imports with Cleaner #4517

Conversation

michael-genson
Copy link
Collaborator

@michael-genson michael-genson commented Nov 6, 2024

What type of PR is this?

(REQUIRED)

  • feature
  • bug

What this PR does / why we need it:

(REQUIRED)

We have a pretty robust recipe data cleaner for migrations, but we aren't actually using it for our scraping. This refactors the scraping/cleaning process a bit to make sure the cleaner actually runs on all imported recipes.

This also fixes a bug with OpenAI scraping which would fail on the ld+json import. We now include ld+json data along with the HTML text.

Which issue(s) this PR fixes:

(REQUIRED)

Fixes issue raised in #4490

Special notes for your reviewer:

(fill-in or delete this section)

I feel like we used to run all recipes through the cleaner, I'm not sure if/when/how that changed. But it works now!

Testing

(fill-in or delete this section)

Manually with a bunch of local data

@michael-genson michael-genson enabled auto-merge (squash) November 13, 2024 15:22
@michael-genson michael-genson merged commit bcd0fcc into mealie-recipes:mealie-next Nov 13, 2024
13 checks passed
@michael-genson michael-genson deleted the fix/open-ai-import-improvements branch November 13, 2024 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants