You've already forked XiguaLiveDanmakuHelper
搜索更新用户
This commit is contained in:
@ -23,10 +23,9 @@ class User:
|
||||
self.type = json["extra"]["user_room_auth_status"]["user_type"]
|
||||
self.block = json["extra"]["user_room_auth_status"]["is_block"]
|
||||
self.mute = json["extra"]["user_room_auth_status"]["is_silence"]
|
||||
elif "room" in json and json["room"] is not None:
|
||||
if "user_info" in json["room"] and json["room"]["user_info"] is not None:
|
||||
self.ID = json["room"]['user_info']['user_id']
|
||||
self.name = json["room"]['user_info']['name']
|
||||
elif "user_info" in json and json["user_info"] is not None:
|
||||
self.ID = json['user_info']['user_id']
|
||||
self.name = json['user_info']['name']
|
||||
elif "anchor" in json and json["anchor"] is not None:
|
||||
if "user_info" in json["anchor"] and json["anchor"]['user_info'] is not None:
|
||||
self.ID = json["anchor"]['user_info']['user_id']
|
||||
|
Reference in New Issue
Block a user