fixed url import array in name

This commit is contained in:
vabene1111
2023-06-12 16:18:24 +02:00
parent 8597c3e95d
commit 2dc038edc7

View File

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