From e0024bcae38cb222178da09400b22f8c29441424 Mon Sep 17 00:00:00 2001 From: syrell Date: Sat, 20 Dec 2025 13:09:29 +0100 Subject: [PATCH] feat: Added log when no scrapped recipe would be added to Mealie --- recipe_bridge.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/recipe_bridge.py b/recipe_bridge.py index 7906a29..17fb341 100644 --- a/recipe_bridge.py +++ b/recipe_bridge.py @@ -292,6 +292,9 @@ def main(): logging.info("All fetched recipes already exist in Mealie!") exit(0) new_recipes = hellofresh_client.recipes - mealie_client.tagged_recipes + if not new_recipes: + logging.info("All scrapped recipes already in Mealie, exiting.") + exit(0) for new_recipe in new_recipes: recipe_slug = mealie_client.add_mealie_recipe(new_recipe) mealie_client.update_mealie_recipe(recipe_slug)