|
|
@@ -1660,8 +1660,14 @@ function countMissingFiles(text: string, cardCount: number): number {
|
|
|
const declared = new Set<string>();
|
|
|
|
|
|
// ① MEDIA 标记:`MEDIA:xxx`(容器写的是 MEDIA:/绝对路径)
|
|
|
- for (const match of text.matchAll(/MEDIA:\s*(\S+)/gi)) {
|
|
|
- declared.add(basename(match[1]));
|
|
|
+ for (const match of text.matchAll(/MEDIA:(?:\s*(\S+))?/gi)) {
|
|
|
+ /*
|
|
|
+ * 只认带路径的 MEDIA 标记(2026-12-03 真机修复):
|
|
|
+ * 容器常写一行「文件:MEDIA:」再把标记放到别处,或剥离插件删掉了链接只留冒号;
|
|
|
+ * 这种空标记不是文件声明,算进去就会误报「还有 1 个文件未收到」(用户实测 PC 端)。
|
|
|
+ */
|
|
|
+ const target = (match[1] || '').trim();
|
|
|
+ if (target) declared.add(basename(target));
|
|
|
}
|
|
|
|
|
|
// ② 云盘链接:只认本项目域名,且取路径最后一段做文件名
|