From 83244aaa058b881cd75d887ef3cc5cad0de2f696 Mon Sep 17 00:00:00 2001 From: gilesb Date: Fri, 9 Jan 2026 03:59:03 +0000 Subject: [PATCH] Filter out recipes from media list Recipes have their own section under /recipes, so exclude them from the media list by checking node_type == "recipe". Co-Authored-By: Claude Opus 4.5 --- server.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/server.py b/server.py index 2f23aa2..459d9d1 100644 --- a/server.py +++ b/server.py @@ -2380,6 +2380,10 @@ async def list_media( if content_hash not in user_hashes: continue + # Skip recipes - they have their own section + if cached_file.node_type == "recipe": + continue + meta = await database.load_item_metadata(content_hash, ctx.actor_id) # Apply folder filter @@ -3790,6 +3794,10 @@ async def ui_media_list( if content_hash not in user_hashes: continue + # Skip recipes - they have their own section + if cached_file.node_type == "recipe": + continue + # Load metadata for filtering meta = await database.load_item_metadata(content_hash, ctx.actor_id)