From 5458dfbdd863da25b5d144acdc885f946a740b52 Mon Sep 17 00:00:00 2001 From: chrisk325 Date: Wed, 18 Mar 2026 14:56:53 +0530 Subject: [PATCH] adapting to refactored chunk --- src/services/catalog/search.ts | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/services/catalog/search.ts b/src/services/catalog/search.ts index 08ca0cac..95407c8e 100644 --- a/src/services/catalog/search.ts +++ b/src/services/catalog/search.ts @@ -321,13 +321,9 @@ async function searchAddonCatalog( const items = metas.map(meta => { const content = convertMetaToStreamingContent(meta, library); - const addonSupportsMeta = Array.isArray(manifest.resources) && manifest.resources.some((resource: any) => - resource === 'meta' || (typeof resource === 'object' && resource?.name === 'meta') - ); - - if (addonSupportsMeta) { - content.addonId = manifest.id; - } + // Do NOT set addonId from search results — let getMetaDetails resolve the correct + // meta addon by ID prefix matching. Setting it here causes 404s when two addons + // are installed and one returns IDs the other can't serve metadata for. const normalizedCatalogType = type ? type.toLowerCase() : type; if (normalizedCatalogType && content.type !== normalizedCatalogType) {