Skip to content

Commit

Permalink
修复抖音无法获取监控信息的问题 (#665)
Browse files Browse the repository at this point in the history
Co-authored-by: root <root@DESKTOP-7EOBUKJ>
  • Loading branch information
hucaloof and root committed Jan 29, 2024
1 parent b74a260 commit e481cc4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/live/douyin/douyin.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,9 @@ func (l *Live) getRoomInfoFromBody(body string) (info *live.Info, streamUrlInfos
err = fmt.Errorf(errorMessageForErrorf+". Not valid json: %s", stepNumberForLog, item[1])
return
}
if !commonJson.Get("common").Exists() {
continue
}
commonStreamId := commonJson.Get("common.stream").String()
if commonStreamId == "" {
err = fmt.Errorf(errorMessageForErrorf+". No valid common stream ID: %s", stepNumberForLog, item[1])
Expand Down

0 comments on commit e481cc4

Please sign in to comment.