fix: only add addons that support the type only when idPrefixes is undefined

This commit is contained in:
Viren070
2025-06-15 20:29:12 +01:00
parent 9213d781d1
commit d7355cb598
+3 -1
View File
@@ -391,8 +391,10 @@ export class AIOStreams {
continue;
}
// look for addons that support the type, but don't have an id prefix
const resource = resources.find(
(r) => r.name === 'meta' && r.types.includes(type)
(r) =>
r.name === 'meta' && r.types.includes(type) && !r.idPrefixes?.length
);
if (resource) {