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

This commit is contained in:
Jerry Yan 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"])

View File

@ -45,6 +45,7 @@ def download():
Common.modifyLastDownloadStatus("Downloaded File >{}< is too small, will ignore it".format(path))
else:
Common.encodeQueue.put(path)
Common.doUpdatePlaylist()
Common.api.updRoomInfo(True)