From 608f6924e3468eaf4239733cd8a7213b9fd66cb7 Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Tue, 31 Dec 2019 12:06:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=91=BD=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api.py b/api.py index 5af0687..dacae26 100644 --- a/api.py +++ b/api.py @@ -179,7 +179,7 @@ class XiGuaLiveApi: 搜索主播名 :return: """ - _results = self.searchLive(self.name) + _results = self.searchUser(self.name) if len(_results) > 0: self.isValidRoom = True self.roomLiver = _results[0] @@ -248,7 +248,7 @@ class XiGuaLiveApi: return XiGuaLiveApi(d["data"]["id"]) @staticmethod - def searchLive(keyword): + def searchUser(keyword): """ 通过关键词搜索主播 :param keyword: 关键词