竟然会反502TAT

This commit is contained in:
Jerry Yan 2020-01-30 20:44:47 +08:00
parent 7102a45382
commit 4ef018a34b

2
api.py
View File

@ -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