change: handle live popup

This commit is contained in:
lilong.129
2023-09-22 11:11:54 +08:00
parent 831425e56b
commit fa34cd9a8f

View File

@@ -242,17 +242,12 @@ func (dExt *DriverExt) VideoCrawler(configs *VideoCrawlerConfigs) (err error) {
WithScreenShotOCR(true),
WithScreenShotUpload(true),
WithScreenShotLiveType(true),
WithScreenShotClosePopups(true),
)
if err != nil {
log.Error().Err(err).Msg("get screen result failed")
time.Sleep(3 * time.Second)
continue
}
if e := crawler.driverExt.tapPopupHandler(screenResult.Popup); e != nil {
log.Error().Err(e).Msg("close live popup failed")
continue
}
// add live type
if screenResult.imageResult != nil &&