feat(metadata): apply language chain and queue full refresh on new entities (INT-3)
Entities created from TMDB candidates (subscription, search/TMDB preview, organize wizard) and manual assignment to an unregistered TMDB identity take title/overview from the metadata.languages chain at creation and enqueue refreshMetadata full=1. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
fe05138c9c
commit
ed868f166e
5 files changed
+83
-8
No files matched your search
@@ -72,6 +72,15 @@ describe.skipIf(skip)("files v2(W9-H)", () => {
|
||||
.execute();
|
||||
expect(units.filter((u) => u.kind === "season")).toHaveLength(3);
|
||||
expect(units.filter((u) => u.kind === "episode")).toHaveLength(28);
|
||||
// INT-3:建档即入队 full 刷新(每集信息、富字段)
|
||||
expect(
|
||||
h.engine.enqueued.filter(
|
||||
(e) =>
|
||||
e.task === "refreshMetadata" &&
|
||||
(e.input as Loose).mediaEntityId === d.mediaEntityId &&
|
||||
(e.input as Loose).full === true,
|
||||
),
|
||||
).toHaveLength(1);
|
||||
|
||||
const again = await h.api(
|
||||
"POST",
|
||||
|
||||
Reference in new issue
Block a user