generalise /reload
このコミットが含まれているのは:
コミット
7fd97d32f1
|
@ -390,10 +390,11 @@ def reload():
|
||||||
'''
|
'''
|
||||||
Re-read config.toml
|
Re-read config.toml
|
||||||
'''
|
'''
|
||||||
|
with viewership.lock:
|
||||||
with open(CONFIG_FILE) as fp:
|
with open(CONFIG_FILE) as fp:
|
||||||
config = toml.load(fp)
|
config = toml.load(fp)
|
||||||
CONFIG['captcha']['fonts'] = config['captcha']['fonts']
|
for key in config:
|
||||||
CONFIG['stream']['hls_time'] = config['stream']['hls_time']
|
CONFIG[key] = config[key]
|
||||||
|
|
||||||
# this exists for the same reason as in /debug
|
# this exists for the same reason as in /debug
|
||||||
response = make_response(CONFIG)
|
response = make_response(CONFIG)
|
||||||
|
|
読み込み中…
新しいイシューから参照