From d0cedaf7a1aefaf849d242ebbccf42feee8e676f Mon Sep 17 00:00:00 2001 From: smilerz Date: Thu, 15 Apr 2021 12:48:26 -0500 Subject: [PATCH] added name parser --- cookbook/helper/recipe_url_import.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbook/helper/recipe_url_import.py b/cookbook/helper/recipe_url_import.py index 34b91eec..8166fa47 100644 --- a/cookbook/helper/recipe_url_import.py +++ b/cookbook/helper/recipe_url_import.py @@ -15,7 +15,7 @@ def get_from_scraper(scrape, space): recipe_json = {} try: - recipe_json['name'] = scrape.title() + recipe_json['name'] = parse_name(scrape.title() or scrape.schema.data.get('name') or '') except TypeError: recipe_json['name'] = ''