Browse Source

bot douyin improve

master v1.0
filesite 1 year ago
parent
commit
e26cd209e1
  1. 3
      bot/Douyin.mjs

3
bot/Douyin.mjs

@ -64,9 +64,6 @@ class Douyin extends HeroBot { @@ -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) {

Loading…
Cancel
Save