fix(scrape): 平铺目录判断里资产没有作品时按别的作品算(修类型错误)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Cxwgnn2pbzQ7rXv3rq7fei
This commit is contained in:
rootandClaude Opus 5.5 committed 2026-10-03 23:23:17 +08:00
1 parent 89aa70bb9c
commit b7f9eb82ad
1 file changed
+1 -1
@@ -798,7 +798,7 @@ async function movieDirShared(
.where("a.status", "=", "active")
.execute();
for (const r of rows)
owners.set(r.relative_path, (owners.get(r.relative_path) ?? new Set()).add(r.media_entity_id));
owners.set(r.relative_path, (owners.get(r.relative_path) ?? new Set()).add(r.media_entity_id ?? ""));
}
return lay.dirVideos.some((v) => {
const own = owners.get(v);