From ed28b481dcb0c60bda2ce597c44fe801ca39b5be Mon Sep 17 00:00:00 2001 From: "lilong.129" Date: Fri, 8 Sep 2023 20:17:10 +0800 Subject: [PATCH] fix: check enter live room success --- hrp/pkg/uixt/video_crawler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hrp/pkg/uixt/video_crawler.go b/hrp/pkg/uixt/video_crawler.go index 495695f2..0392c40e 100644 --- a/hrp/pkg/uixt/video_crawler.go +++ b/hrp/pkg/uixt/video_crawler.go @@ -119,7 +119,7 @@ func (vc *VideoCrawler) startLiveCrawler(enterPoint PointF) error { return err } liveRoom, err := vc.getCurrentVideo() - if err != nil || (liveRoom.Type != VideoType_Live || liveRoom.Type != VideoType_PreviewLive) { + if err != nil || (liveRoom.Type != VideoType_Live && liveRoom.Type != VideoType_PreviewLive) { return errors.New("enter live room failed") } log.Info().Interface("liveRoom", liveRoom).Msg("enter live room success")