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
This commit is contained in:
parent
43e16f5bfa
commit
a90d7b1cad
1 changed files with 1 additions and 2 deletions
|
|
@ -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,
|
||||
},
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue