mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-07 00:17:37 +08:00
change: update logs
This commit is contained in:
@@ -322,13 +322,6 @@ func (dExt *DriverExt) VideoCrawler(configs *VideoCrawlerConfigs) (err error) {
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
// 点播 || 图文 || 广告 || etc.
|
// 点播 || 图文 || 广告 || 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
|
// get simulation play duration
|
||||||
if screenResult.Video.SimulationPlayDuration != 0 {
|
if screenResult.Video.SimulationPlayDuration != 0 {
|
||||||
screenResult.Video.PlayDuration = screenResult.Video.SimulationPlayDuration
|
screenResult.Video.PlayDuration = screenResult.Video.SimulationPlayDuration
|
||||||
@@ -337,6 +330,11 @@ func (dExt *DriverExt) VideoCrawler(configs *VideoCrawlerConfigs) (err error) {
|
|||||||
screenResult.Video.PlayDuration = screenResult.Video.RandomPlayDuration
|
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
|
// simulation watch feed video
|
||||||
sleepStrict(swipeFinishTime, screenResult.Video.PlayDuration)
|
sleepStrict(swipeFinishTime, screenResult.Video.PlayDuration)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user