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

fixed reishunger.de parser #352 #616

Merged
merged 11 commits into from Oct 12, 2022

Conversation

vabene1111
Copy link
Collaborator

@vabene1111 vabene1111 commented Oct 1, 2022

Reishunger.de has two different formats, in one it offers different cooking methods in the other it does not.

This PR

  • fixes the already supported single cooking method format (the soup tag to find instructions changed)
  • adds support for multi method recipe
  • updated old test to use current website data and format
  • added new test to test multi method recipes

fixes #352

@vabene1111 vabene1111 changed the title fixed reishunger.de parser fixed reishunger.de parser #352 Oct 1, 2022
@vabene1111
Copy link
Collaborator Author

fixed tests to assert for equality

@vabene1111 vabene1111 added the hacktoberfest-accepted Hactoberfest 2022 label Oct 4, 2022
@vabene1111
Copy link
Collaborator Author

the latest change you made looses the special instructions that are provided for different cooking methods, that's the reason i did not implement it before, feel free to leave it like this but wanted to let you know.

@jayaddison
Copy link
Collaborator

Thanks for noticing that - that's a bug. Pushing a fix in a moment (should be using findAll instead of find to retrieve a list of multiple preparation steps).

@jayaddison
Copy link
Collaborator

The numbered step headings included in the instructions list didn't seem ideal - I've pushed eaf05d0 to filter those out, and will merge this soon.

@jayaddison jayaddison merged commit 5c033fb into hhursev:main Oct 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest-accepted Hactoberfest 2022
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Import from reishunger.de instructions are missing
2 participants