From 2a51593cc3beacaa8fb4e7199f38a69b3665fa61 Mon Sep 17 00:00:00 2001
From: Jerry Yan <792602257@qq.com>
Date: Sun, 14 Apr 2019 15:37:13 +0800
Subject: [PATCH] =?UTF-8?q?=E9=81=BF=E5=85=8D=E4=B8=8B=E5=88=B0=E5=88=AB?=
 =?UTF-8?q?=E4=BA=BA=E7=9A=84=E7=9B=B4=E6=92=AD=E4=BA=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 api.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/api.py b/api.py
index b905e68..d644e5f 100644
--- a/api.py
+++ b/api.py
@@ -161,9 +161,12 @@ class XiGuaLiveApi:
             if "room" not in d and d["room"] is None:
                 self.apiChangedError("Api发生改变,请及时联系我", d)
                 return False
+            self.roomLiver = User(d)
+            if self.name not in str(self.roomLiver):
+                self.isLive = False
+                return False
             self._rawRoomInfo = d["room"]
             self.isLive = d["room"]["status"] == 2
-            self.roomLiver = User(d)
             self.roomTitle = d["room"]["title"]
             self.roomPopularity = d["room"]["user_count"]
             l = Lottery(d)