From a90d7b1cad8501a2fa74aa8e457e2249bde4e2ae Mon Sep 17 00:00:00 2001 From: WebStreamr <210764791+webstreamr@users.noreply.github.com> Date: Fri, 23 Jan 2026 22:10:24 +0000 Subject: [PATCH] fix(extractor): use full cached meta to avoid invalid cache states The lazy extraction does not specify meta the same way the stream resolver does. this leads to partial meta being inserted in both the short-term and long-term cache and consecutive requests have then missing meta info like e.g. countries --- src/extractor/ExtractorRegistry.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/extractor/ExtractorRegistry.ts b/src/extractor/ExtractorRegistry.ts index 8c361e7..0033c78 100644 --- a/src/extractor/ExtractorRegistry.ts +++ b/src/extractor/ExtractorRegistry.ts @@ -84,8 +84,7 @@ export class ExtractorRegistry { normalizedUrl, { ...meta, - ...(/* istanbul ignore next */lazyUrlResults[0]?.meta?.bytes && { bytes: lazyUrlResults[0]?.meta?.bytes }), - ...(/* istanbul ignore next */lazyUrlResults[0]?.meta?.height && { height: lazyUrlResults[0]?.meta?.height }), + ...lazyUrlResults[0]?.meta, extractorId: meta?.extractorId ?? extractor.id, }, );