merged PR 474 adding manual json import

This commit is contained in:
vabene1111
2021-03-18 12:36:00 +01:00
parent 3c1b6a5f3a
commit 48c90c483a
4 changed files with 50 additions and 3 deletions

View File

@@ -84,6 +84,7 @@ def find_recipe_json(ld_json, url, space):
for x in ld_json['recipeIngredient']:
if x.replace(' ', '') != '':
x = x.replace('½', "0.5").replace('¼', "0.25").replace('¾', "0.75")
try:
amount, unit, ingredient, note = parse_ingredient(x)
if ingredient: