metric-cooking icon indicating copy to clipboard operation
metric-cooking copied to clipboard

not working at all, previously gave different gram weights for cups of same ingredient on different websites

Open fatlola opened this issue 5 years ago • 5 comments

this app is now not working on Holy Cow! vegan recipes. yesterday I was looking a variations of the same recipe on different websites and it gave different gram weights for half cup of same ingredient on each

fatlola avatar Oct 16 '19 13:10 fatlola

The HTML looks like this:

<li class="wprm-recipe-ingredient" style="list-style-type: disc;">
  <span class="wprm-recipe-ingredient-amount">1</span>
  <span class="wprm-recipe-ingredient-unit">tsp</span> 
  <span class="wprm-recipe-ingredient-name"><a href="https://amzn.to/2FDqrGE" target="_blank" rel="nofollow"><strong>olive oil</strong></a></span>
</li>

so it's the same problem as #6 and some others, I should definitely look into this...

falk-hueffner avatar Aug 29 '20 20:08 falk-hueffner

Sorry for the super late reply, but if you still had the URL of the site with the different gram weights, I could investigate that too!

falk-hueffner avatar Aug 29 '20 20:08 falk-hueffner

https://www.allrecipes.com/recipe/10813/best-chocolate-chip-cookies/

Also here, the 1 cup of white sugar is converted to 200g, whereas I'd prefer if it was dl, because that's how we measure things in Finland and I assume other Nordic countries. 1 cup of butter indeed IS better as grams, so no need to change that. But also flour is converted to grams, which would be better as dl. Chocolate chips and walnuts are in dl, which is good!

Perhaps, if people wish to have sugar and flour as grams instead, there could be a simple preferences page for these really common ingredients, in case there's no default usage for them.

Ianuarius avatar Feb 13 '21 12:02 Ianuarius

At that recipe, we have 1 cup white sugar [200 g] and 1 cup packed brown sugar [225 g], which seems correct because packed brown sugar has higher density than white sugar.

For the other suggestion, I've opened #19.

falk-hueffner avatar May 13 '21 14:05 falk-hueffner

Id forgotten all about this to be honest. My problem was that most recipes were converted from US cups to metric cups, millilitres, which was no more helpful.

On Thu, 13 May 2021, 15:41 Falk Hüffner, @.***> wrote:

At that recipe, we have 1 cup white sugar [200 g] and 1 cup packed brown sugar [225 g], which seems correct because packed brown sugar has higher density than white sugar.

For the other suggestion, I've opened #19 https://github.com/falk-hueffner/metric-cooking/issues/19.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/falk-hueffner/metric-cooking/issues/13#issuecomment-840607530, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANQEFV7MY4YF37XRAGXQK5DTNPQI5ANCNFSM4JBLOSJA .

fatlola avatar May 13 '21 18:05 fatlola