change: update logs

This commit is contained in:
lilong.129
2023-09-08 18:10:51 +08:00
parent 94f4b639fd
commit 8071623487

View File

@@ -322,13 +322,6 @@ func (dExt *DriverExt) VideoCrawler(configs *VideoCrawlerConfigs) (err error) {
default:
// 点播 || 图文 || 广告 || etc.
// check feed type and incr feed count
crawler.FeedCount++
log.Info().
Strs("tags", screenResult.Tags).
Interface("feed", screenResult.Video).
Msg("found feed success")
// get simulation play duration
if screenResult.Video.SimulationPlayDuration != 0 {
screenResult.Video.PlayDuration = screenResult.Video.SimulationPlayDuration
@@ -337,6 +330,11 @@ func (dExt *DriverExt) VideoCrawler(configs *VideoCrawlerConfigs) (err error) {
screenResult.Video.PlayDuration = screenResult.Video.RandomPlayDuration
}
crawler.FeedCount++
log.Info().Interface("feed", screenResult.Video).
Strs("tags", screenResult.Tags).
Msg("found feed success")
// simulation watch feed video
sleepStrict(swipeFinishTime, screenResult.Video.PlayDuration)
}