diff --git a/hrp/pkg/uixt/video_crawler.go b/hrp/pkg/uixt/video_crawler.go index b2d270e9..efee17f0 100644 --- a/hrp/pkg/uixt/video_crawler.go +++ b/hrp/pkg/uixt/video_crawler.go @@ -199,6 +199,14 @@ func (l *LiveCrawler) exitLiveRoom() error { } func (dExt *DriverExt) VideoCrawler(configs *VideoCrawlerConfigs) (err error) { + // set default sleep random strategy if not set + if configs.Feed.SleepRandom == nil { + configs.Feed.SleepRandom = []interface{}{1, 5} + } + if configs.Live.SleepRandom == nil { + configs.Live.SleepRandom = []interface{}{10, 15} + } + currVideoStat := &VideoStat{ configs: configs,