Kemono助手

提供更好的Kemono使用体验

< Feedback on Kemono助手

Review: Good - script works

§
Posted: 11.04.2025

提个bug

有些很老的资源貌似没有name, 导致for (let [i, {name, path}] of post.attachments.entries())报错.

比如 https://kemono.su/fanbox/user/49494721/post/4280288

解决方法就是随机生成个名字.

...
if(!name) name = Math.floor(Math.random()* 1000000) + "_random";
const filename = name.replace(/\.\w+$/, '');

Post reply

Sign in to post a reply.