修复bug,针对部分没有MD5名字的视频也能支持导出

This commit is contained in:
Nanin committed 2026-08-08 19:41:14 +08:00
1 parent 7eefc59a0f
commit 7904d42442
12 files changed
+107 -13

No files matched your search

+1 -2
View File
@@ -1152,11 +1152,10 @@ export async function runExport(
].filter((value): value is string => Boolean(value))
if (!videoService) {
keepMediaError(request, message, '数据库未连接,无法定位本地视频')
} else if (hashes.length === 0) {
keepMediaError(request, message, '视频标识不完整,无法定位本地视频')
} else {
const resolved = await videoService.resolve(hashes, {
createTime: message.createTime,
byteLength: message.contentData.byteLength,
duration: message.contentData.duration,
width: message.contentData.width,
height: message.contentData.height