片段下载完毕后,开一个线程更新下直播信息

This commit is contained in:
2022-02-11 09:29:58 +08:00
parent 3096df86b2
commit 798af607bb
2 changed files with 7 additions and 0 deletions

View File

@ -361,6 +361,12 @@ class downloader(XiGuaLiveApi):
api = downloader(config["l_u"])
def doUpdatePlaylist(_force=False):
p = threading.Thread(target=api.updRoomInfo, args=(_force,))
p.setDaemon(True)
p.start()
def refreshDownloader():
global api
api = downloader(config["l_u"])