change: wait 3s for live loading

This commit is contained in:
lilong.129
2023-09-22 21:44:22 +08:00
parent cc25a651df
commit 4d62708900

View File

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