mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-05-24 01:12:54 -04:00
fix: scrape images as list (#4293)
This commit is contained in:
parent
49a392f4e2
commit
1bd3d38dfc
@ -54,6 +54,8 @@ async def create_from_html(
|
||||
recipe_data_service = RecipeDataService(new_recipe.id)
|
||||
|
||||
try:
|
||||
if new_recipe.image and isinstance(new_recipe.image, list):
|
||||
new_recipe.image = new_recipe.image[0]
|
||||
await recipe_data_service.scrape_image(new_recipe.image) # type: ignore
|
||||
|
||||
if new_recipe.name is None:
|
||||
|
Loading…
x
Reference in New Issue
Block a user