redirect to import url for processing

This commit is contained in:
smilerz
2021-03-29 11:49:56 -05:00
parent 6acbd6d308
commit 7cc757ac33
4 changed files with 49 additions and 16 deletions

View File

@ -118,7 +118,7 @@ def get_recipe_from_source(text, url, space):
temp_tree.append(node)
if '@type' in el and el['@type'] == 'Recipe':
recipe_json = helper.find_recipe_json(el, None, space)
recipe_json = helper.find_recipe_json(el, url, space)
recipe_tree += [{'name': 'ld+json', 'children': temp_tree}]
else:
recipe_tree += [{'name': 'json', 'children': temp_tree}]