From 58fc26904b5ad51c5dc2304e9a57b690839e182c Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Fri, 19 Mar 2021 10:05:17 +0100 Subject: [PATCH] fixed url importer stuff --- cookbook/helper/recipe_url_import.py | 2 +- cookbook/templates/url_import.html | 19 ++++++++++++++++--- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/cookbook/helper/recipe_url_import.py b/cookbook/helper/recipe_url_import.py index f8f171e9..ab421e38 100644 --- a/cookbook/helper/recipe_url_import.py +++ b/cookbook/helper/recipe_url_import.py @@ -236,7 +236,6 @@ def get_from_scraper(scrape, space): recipe_json['prepTime'] = 0 recipe_json['cookTime'] = 0 - description += "\n\nImported from " + scrape.url recipe_json['description'] = description try: @@ -315,6 +314,7 @@ def get_from_scraper(scrape, space): except AttributeError: recipe_json['recipeInstructions'] = "" + recipe_json['recipeInstructions'] += "\n\nImported from " + scrape.url return recipe_json diff --git a/cookbook/templates/url_import.html b/cookbook/templates/url_import.html index c2116008..64c4ec0e 100644 --- a/cookbook/templates/url_import.html +++ b/cookbook/templates/url_import.html @@ -63,7 +63,7 @@ - +