From 2dc038edc7753e16f6a583915a8ba01174b4d97e Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Mon, 12 Jun 2023 16:18:24 +0200 Subject: [PATCH] fixed url import array in name --- cookbook/helper/recipe_url_import.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cookbook/helper/recipe_url_import.py b/cookbook/helper/recipe_url_import.py index d26320984..506d3d399 100644 --- a/cookbook/helper/recipe_url_import.py +++ b/cookbook/helper/recipe_url_import.py @@ -35,6 +35,9 @@ def get_from_scraper(scrape, request): except Exception: recipe_json['name'] = '' + if isinstance(recipe_json['name'], list) and len(recipe_json['name']) > 0: + recipe_json['name'] = recipe_json['name'][0] + try: description = scrape.description() or None except Exception: