添加详情页的点赞计数,添加网站图标

This commit is contained in:
2025-10-23 14:22:12 +08:00
parent 5a5eba19e4
commit f94ef73518
10 changed files with 65 additions and 19 deletions
+5
View File
@@ -87,11 +87,16 @@ async function readPostMem(context: BrowserContext, page: Page) {
// return {aweme: { detail: {} } };
}).catch(() => null);
// await new Promise((res) => setTimeout(res, 1000000));
let aweme_mem = md?.aweme?.detail as DouyinImageAweme;
if (!aweme_mem) throw new Error('页面内存数据中未找到作品详情');
// @ts-ignore
aweme_mem.author = aweme_mem.authorInfo
// @ts-ignore
aweme_mem.statistics = aweme_mem.stats
const comments = md.comment ? createCamelCompatibleProxy<DouyinCommentResponse>(md.comment) : null;
const aweme = createCamelCompatibleProxy(aweme_mem);