From a9c281c8c4c0d215dc78fedd6a34072e0aec9f31 Mon Sep 17 00:00:00 2001 From: WebStreamr <210764791+webstreamr@users.noreply.github.com> Date: Sun, 18 Jan 2026 12:57:28 +0000 Subject: [PATCH] fix(extractor): only use bytes and height from meta cache to avoid clashes --- src/extractor/ExtractorRegistry.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/extractor/ExtractorRegistry.ts b/src/extractor/ExtractorRegistry.ts index 63d5d8e..a396bc4 100644 --- a/src/extractor/ExtractorRegistry.ts +++ b/src/extractor/ExtractorRegistry.ts @@ -69,7 +69,7 @@ export class ExtractorRegistry { /* istanbul ignore next */ if ( - lazyUrlResults.length && allowLazy && !extractor.viaMediaFlowProxy && extractor.id !== 'external' + lazyUrlResults.length && allowLazy && !extractor.viaMediaFlowProxy && lazyUrlResults.every(urlResult => urlResult.format !== Format.hls) // related to Android issues, e.g. https://github.com/Stremio/stremio-bugs/issues/1574 or https://github.com/Stremio/stremio-bugs/issues/1579 ) { // generate lazy extract urls @@ -90,7 +90,8 @@ export class ExtractorRegistry { normalizedUrl, { ...meta, - ...lazyUrlResults[0]?.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 }), extractorId: meta?.extractorId ?? extractor.id, }, );