Emeg Update : Fix isLive is always True

This commit is contained in:
JerryYan ECS 2019-01-31 13:09:21 +08:00
parent 884122b007
commit 81763fdf37

2
api.py
View File

@ -91,7 +91,7 @@ class XiGuaLiveApi:
self.apiChangedError("Api发生改变请及时联系我")
return False
self._rawRoomInfo = d["room"]
self.isLive = True
self.isLive = d["room"]["status"] == 2
self.roomLiver = User(d)
self.roomTitle = d["room"]["title"]
self.roomPopularity = d["room"]["user_count"]