mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-09 08:08:24 -05:00
fixed url import array in name
This commit is contained in:
@@ -35,6 +35,9 @@ def get_from_scraper(scrape, request):
|
|||||||
except Exception:
|
except Exception:
|
||||||
recipe_json['name'] = ''
|
recipe_json['name'] = ''
|
||||||
|
|
||||||
|
if isinstance(recipe_json['name'], list) and len(recipe_json['name']) > 0:
|
||||||
|
recipe_json['name'] = recipe_json['name'][0]
|
||||||
|
|
||||||
try:
|
try:
|
||||||
description = scrape.description() or None
|
description = scrape.description() or None
|
||||||
except Exception:
|
except Exception:
|
||||||
|
|||||||
Reference in New Issue
Block a user