support change while running

This commit is contained in:
2019-04-07 22:26:21 +08:00
committed by JerryYan
parent 16c68e5ceb
commit ce819185eb
4 changed files with 39 additions and 6 deletions

View File

@ -6,6 +6,14 @@ import json
_config_fp = open("config.json","r",encoding="utf8")
config = json.load(_config_fp)
_config_fp.close()
def reloadConfig():
global config, _config_fp
_config_fp = open("config.json", "r", encoding="utf8")
config = json.load(_config_fp)
_config_fp.close()
dt_format="%Y/%m/%d %H:%M:%S"
@ -14,6 +22,8 @@ streamUrl = ""
isBroadcasting = False
updateTime = ""
forceStopDownload = False
uploadQueue = queue.Queue()
encodeQueue = queue.Queue()