|
|
|
@ -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) { |
|
|
|
|