更新:Api升级了

修复:下播超过1小时才会投稿视频
This commit is contained in:
2019-04-07 00:44:26 +08:00
parent 90f6e8e1cb
commit f8d4be5385
2 changed files with 13 additions and 8 deletions

2
api.py
View File

@ -186,7 +186,7 @@ class XiGuaLiveApi:
for i in d["data"]:
if i["block_type"] != 0:
continue
if len(i["cells"]) == 0:
if "cells" not in i or len(i["cells"]) == 0:
return
self.isValidRoom = True
if "is_living" in i["cells"][0]["anchor"]["user_info"]: