op: emit painting_variant author/title as plain strings

이미지 zip 의 cover_NN.json 이 title/author 를 {text:...} 객체로 내보내
일부 환경에서 인식되지 않던 문제. 요청 형식대로 author:"musicquiz",
title:"cover_NN" 평문 문자열로 바꿔 asset_id/width/height 뒤에 배치한다.
This commit is contained in:
2026-06-05 15:51:59 +09:00
parent d22c6f17a3
commit 3baf84cfd1

View File

@@ -293,8 +293,8 @@ opRouter.get('/op/datapack/:packName/images-zip', requireAuth, async (req, res,
asset_id: `musicquiz:cover_${nn}`, asset_id: `musicquiz:cover_${nn}`,
width: size, width: size,
height: size, height: size,
title: { text: `Cover ${nn}` }, author: 'musicquiz',
author: { text: 'music quiz' } title: `cover_${nn}`
} }
archive.append(JSON.stringify(json, null, 2) + '\n', { name: `cover_${nn}.json` }) archive.append(JSON.stringify(json, null, 2) + '\n', { name: `cover_${nn}.json` })
} }