From e26cd209e1225fe3dfd8371ba18c30282e3fd084 Mon Sep 17 00:00:00 2001 From: filesite Date: Fri, 15 Sep 2023 21:01:16 +0800 Subject: [PATCH] bot douyin improve --- bot/Douyin.mjs | 3 --- 1 file changed, 3 deletions(-) diff --git a/bot/Douyin.mjs b/bot/Douyin.mjs index 85462a4..c060095 100644 --- a/bot/Douyin.mjs +++ b/bot/Douyin.mjs @@ -64,9 +64,6 @@ class Douyin extends HeroBot { data.cover = common.getAbsoluteUrl(data.cover); const response = await hero.goto(data.cover); - //等待所有内容加载完成 - const tab_img = await hero.activeTab; - await tab_img.waitForLoad('AllContentLoaded', {timeoutMs: configs.heroTabOptions.timeoutMs}); const imgBuffer = await response.buffer; //console.log('Cover image fetch done', imgBuffer.toString('base64')); if (imgBuffer) {