From 4ef018a34b017b5eaf613beb49d047e4b462e42e Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Thu, 30 Jan 2020 20:44:47 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AB=9F=E7=84=B6=E4=BC=9A=E5=8F=8D502TAT?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api.py b/api.py index a4b9d57..cf9e266 100644 --- a/api.py +++ b/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