Skip to content

Commit

Permalink
fix douyin hidden live
Browse files Browse the repository at this point in the history
  • Loading branch information
kira1928 committed May 31, 2024
1 parent 57200f1 commit 191c21a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/live/douyin/douyin.go
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,11 @@ func (l *Live) legacy_GetInfo(body string) (info *live.Info, err error) {
if statusJson.Exists() {
isLiving = statusJson.Int() == 2
} else {
isLiving = data.Get("data.room_status").Int() == 0
isLivingJson := data.Get("data.room_status")
if !isLivingJson.Exists() {
return nil, fmt.Errorf("failed to get room status")
}
isLiving = isLivingJson.Int() == 0
}
info = &live.Info{
Live: l,
Expand Down

0 comments on commit 191c21a

Please sign in to comment.