Skip to content

Commit

Permalink
fix: scrape images as list (#4293)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuchenpirat authored Sep 30, 2024
1 parent 49a392f commit 1bd3d38
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mealie/services/scraper/scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 1bd3d38

Please sign in to comment.