Skip to content

Add seriouseats.com#12

Open
MRuy wants to merge 4 commits intojpbulman:mainfrom
MRuy:seriouseats.com
Open

Add seriouseats.com#12
MRuy wants to merge 4 commits intojpbulman:mainfrom
MRuy:seriouseats.com

Conversation

@MRuy
Copy link
Contributor

@MRuy MRuy commented Feb 27, 2022

Issue #7

@vercel
Copy link

vercel bot commented Feb 27, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/jpbulman/only-the-recipe/8HaxAJFGLcUVYAAyt4eTymntsVXS
✅ Preview: https://only-the-recipe-git-fork-mruy-seriouseatscom-jpbulman.vercel.app

Copy link
Owner

@jpbulman jpbulman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks pretty good to me, thanks for the contribution 🎉 ! Just fixing the merge conflict and the annoying edge case should be enough for me

ingredientsSelector: 'li[class="wprm-recipe-ingredient"]',
directionsSelector: 'div[class="wprm-recipe-instruction-text"]',
},
'seriouseats.com' : {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you mind alphabetizing this within the array? It helps avoid merge conflicts in prs 🙂

},
'seriouseats.com' : {
titleSelector: 'h1.heading__title',
ingredientsSelector: '.section--ingredients .structured-ingredients__list-item',
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This appears to break on some recipes because for some reason they use different classes for the list occasionally. I think it would probably work to just take the ingredients section, take whatever unordered list is in it, and then the list items.

@MRuy
Copy link
Contributor Author

MRuy commented Feb 27, 2022

Example 1
Example 2

@jpbulman
Copy link
Owner

Awesome, thanks so much for the fix 🔧 ! This looks great to me, the only thing that needs to be fixed is the alphabetical order on the domain list(s) so there aren't merge conflicts. After that, I'll put it through!

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.

2 participants