diff --git a/Common.py b/Common.py index e427e46..d24b106 100644 --- a/Common.py +++ b/Common.py @@ -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"]) diff --git a/liveDownloader.py b/liveDownloader.py index a99d9c0..18734dc 100644 --- a/liveDownloader.py +++ b/liveDownloader.py @@ -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)