From 1bd3d38dfc76ac81c5ebd9710d79486f2d61ab15 Mon Sep 17 00:00:00 2001 From: Kuchenpirat <24235032+Kuchenpirat@users.noreply.github.com> Date: Mon, 30 Sep 2024 19:07:14 +0200 Subject: [PATCH] fix: scrape images as list (#4293) --- mealie/services/scraper/scraper.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mealie/services/scraper/scraper.py b/mealie/services/scraper/scraper.py index 644a2f53872..4addd2eff1b 100644 --- a/mealie/services/scraper/scraper.py +++ b/mealie/services/scraper/scraper.py @@ -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: