From 8071623487a8d228794514e2028765648140a608 Mon Sep 17 00:00:00 2001 From: "lilong.129" Date: Fri, 8 Sep 2023 18:10:51 +0800 Subject: [PATCH] change: update logs --- hrp/pkg/uixt/video_crawler.go | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/hrp/pkg/uixt/video_crawler.go b/hrp/pkg/uixt/video_crawler.go index 51cbcc53..b7ca679e 100644 --- a/hrp/pkg/uixt/video_crawler.go +++ b/hrp/pkg/uixt/video_crawler.go @@ -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) }