This commit is contained in:
Jerry Yan 2019-12-31 12:06:55 +08:00
parent e8b981e7df
commit 608f6924e3

4
api.py
View File

@ -179,7 +179,7 @@ class XiGuaLiveApi:
搜索主播名 搜索主播名
:return: :return:
""" """
_results = self.searchLive(self.name) _results = self.searchUser(self.name)
if len(_results) > 0: if len(_results) > 0:
self.isValidRoom = True self.isValidRoom = True
self.roomLiver = _results[0] self.roomLiver = _results[0]
@ -248,7 +248,7 @@ class XiGuaLiveApi:
return XiGuaLiveApi(d["data"]["id"]) return XiGuaLiveApi(d["data"]["id"])
@staticmethod @staticmethod
def searchLive(keyword): def searchUser(keyword):
""" """
通过关键词搜索主播 通过关键词搜索主播
:param keyword: 关键词 :param keyword: 关键词