竟然会反502TAT
This commit is contained in:
parent
7102a45382
commit
4ef018a34b
2
api.py
2
api.py
@ -368,6 +368,8 @@ class XiGuaLiveApi:
|
||||
p = self.s.post(_url, data="cursor={cursor}&resp_content_type=protobuf&live_id=3&user_id=0&identity=audience"
|
||||
"&internal_ext={ext}".format_map({"cursor": self._cursor, "ext": self._ext}),
|
||||
headers={"Content-Type": "application/x-www-form-urlencoded"})
|
||||
if p.status_code != 200:
|
||||
return
|
||||
data = XiguaLive()
|
||||
data.ParseFromString(p.content)
|
||||
self._cursor = data.cursor
|
||||
|
Reference in New Issue
Block a user