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 @@
-
+

{% trans 'Discovered Attributes' %}

{% trans 'Drag recipe attributes from below into the appropriate box on the left. Click any node to display its full properties.' %} @@ -291,20 +291,26 @@ images
+
{% trans 'Blank Field' %} - +
{% trans 'Items dragged to Blank Field will be appended.'%}
+ @dragenter.prevent + draggable + @dragstart="htmlDragStart($event)"> + [[blank_field]]