Skip to content

修复描述引用块中 MediaInfo 识别失败的问题#418

Merged
xheiop merged 1 commit into
xheiop:masterfrom
mustangpt:fix/yemapt-mediainfo-detection
Jul 11, 2026
Merged

修复描述引用块中 MediaInfo 识别失败的问题#418
xheiop merged 1 commit into
xheiop:masterfrom
mustangpt:fix/yemapt-mediainfo-detection

Conversation

@mustangpt

Copy link
Copy Markdown
Contributor

修改说明

修复从描述引用块中提取 MediaInfo 失败的问题。该修改作用于公共 MediaInfo 提取逻辑,适用于所有使用此逻辑解析描述的站点。

问题原因

原有引用块正则不允许内容中出现 []。当 MediaInfo 包含类似以下内容时,整个引用块无法被提取:

Title : 简体中文&English [MT机翻]

此外,原有 MediaInfo 判断主要依赖 Unique ID、Codec ID 和 Stream size 等字段。部分缺少这些字段、但具有标准分段结构的 MediaInfo 也可能无法识别。

## 修改内容

- 支持提取内容中包含方括号的 [quote] 引用块
- 支持 [quote=标题] 格式
- 支持通过 General → Video → Audio 标准分段结构识别 MediaInfo
- 保留原有特征字段识别逻辑
- 避免将普通引用误判为 MediaInfo
- 增加包含方括号内容及标准分段结构的回归测试

## 影响范围

所有调用公共 getBDInfoOrMediaInfoFromBBCode 方法、从描述引用块中提取 MediaInfo 的源站解析器。

## 验证结果

- ESLint 检查通过
- 相关测试全部通过
- 生产构建通过

@xheiop
xheiop merged commit 2f57f5d into xheiop:master Jul 11, 2026
5 checks passed
xheiop added a commit that referenced this pull request Jul 11, 2026
- tag Dolby Atmos audio as dolby_atmos instead of dts_x
- prevent infinite recursion in filterEmptyTags on mismatched tag pairs
- keep full MediaInfo values containing colons (Complete name, 16:9 etc.)
- stop greedy regex from merging multiple [comparison] blocks in
  buildPTPDescription
- fix season number extraction for "Season N" style titles
- replace (.|\n) quote regexes with [\s\S] to avoid slow backtracking,
  and match [quote=xxx] variants (same family as #418)
- retry failed url-to-file conversions instead of caching rejections,
  and clear the cache after upload flows to release image memory
- drop needless async from withUploadErrorHandling and simplify the
  double-await call sites
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants