You've already forked XiguaLiveDanmakuHelper
下播判断
This commit is contained in:
3
api.py
3
api.py
@ -398,6 +398,9 @@ class XiGuaLiveApi:
|
||||
elif _each.method == "WebcastChatMessage":
|
||||
_chat = Chat(_each.raw)
|
||||
self.onChat(_chat)
|
||||
elif _each.method == "WebcastControlMessage":
|
||||
# 下播的时候会有个这个
|
||||
self.onLeave(None)
|
||||
elif _each.method == "WebcastSocialMessage":
|
||||
_socialMessage = SocialMessage()
|
||||
_socialMessage.ParseFromString(_each.raw)
|
||||
|
Reference in New Issue
Block a user