片段下载完毕后,开一个线程更新下直播信息
This commit is contained in:
parent
3096df86b2
commit
798af607bb
@ -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"])
|
||||
|
@ -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)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user