命名
This commit is contained in:
parent
e8b981e7df
commit
608f6924e3
4
api.py
4
api.py
@ -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: 关键词
|
||||||
|
Reference in New Issue
Block a user