diff --git a/cookbook/helper/recipe_url_import.py b/cookbook/helper/recipe_url_import.py index 74ec8e29c..116a8448e 100644 --- a/cookbook/helper/recipe_url_import.py +++ b/cookbook/helper/recipe_url_import.py @@ -347,6 +347,9 @@ def parse_image(image): image = pic elif 'url' in pic: image = pic['url'] + elif type(image) == dict: + if 'url' in image: + image = image['url'] # ignore relative image paths if image[:4] != 'http': diff --git a/cookbook/templates/url_import.html b/cookbook/templates/url_import.html index 4f2f1c8e2..16b358de8 100644 --- a/cookbook/templates/url_import.html +++ b/cookbook/templates/url_import.html @@ -274,7 +274,7 @@