From 4d627089003e9f75f0b69e84665ac3733f8d58d7 Mon Sep 17 00:00:00 2001 From: "lilong.129" Date: Fri, 22 Sep 2023 21:44:22 +0800 Subject: [PATCH] change: wait 3s for live loading --- hrp/pkg/uixt/video_crawler.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hrp/pkg/uixt/video_crawler.go b/hrp/pkg/uixt/video_crawler.go index 535ad050..314206cc 100644 --- a/hrp/pkg/uixt/video_crawler.go +++ b/hrp/pkg/uixt/video_crawler.go @@ -239,6 +239,8 @@ func (dExt *DriverExt) VideoCrawler(configs *VideoCrawlerConfigs) (err error) { crawler.LiveCount++ log.Info().Interface("video", currentVideo).Msg(FOUND_LIVE_SUCCESS) + // wait 3s for live loading + time.Sleep(3 * time.Second) // take screenshot and get screen texts by OCR screenResult, err := crawler.driverExt.GetScreenResult( WithScreenShotOCR(true),