You've already forked XiguaLiveDanmakuHelper
改善代码兼容性
This commit is contained in:
22
api.py
22
api.py
@ -12,21 +12,21 @@ import time
|
||||
|
||||
s = requests.Session()
|
||||
|
||||
DEBUG: bool = False
|
||||
DEBUG = False
|
||||
|
||||
|
||||
class XiGuaLiveApi:
|
||||
isLive: bool = False
|
||||
isValidRoom: bool = False
|
||||
isLive = False
|
||||
isValidRoom = False
|
||||
_rawRoomInfo = {}
|
||||
name: str = ""
|
||||
roomID: int = 0
|
||||
roomTitle: str = ""
|
||||
roomLiver: User = None
|
||||
roomPopularity: int = 0
|
||||
_cursor:str = "0"
|
||||
_updRoomCount:int = 0
|
||||
lottery:Lottery = None
|
||||
name = ""
|
||||
roomID = 0
|
||||
roomTitle = ""
|
||||
roomLiver = None
|
||||
roomPopularity = 0
|
||||
_cursor = "0"
|
||||
_updRoomCount = 0
|
||||
lottery = None
|
||||
|
||||
def __init__(self, name: str = "永恒de草薙"):
|
||||
self.name = name
|
||||
|
Reference in New Issue
Block a user