强制编码上传

This commit is contained in:
2019-04-18 10:37:13 +08:00
parent 17d2cc4ebd
commit 86e4aa483f
3 changed files with 31 additions and 0 deletions

View File

@ -72,6 +72,22 @@ def toggleForceNotBroadcast():
}})
@app.route("/force/start/encode", methods=["POST"])
def toggleForceStartEncodeThread():
Common.forceStartEncodeThread = True
Common.appendOperation("强制运行编码线程")
return jsonify({"message":"ok","code":200,"status":0,"data":{
}})
@app.route("/force/start/upload", methods=["POST"])
def toggleForceStartEncodeThread():
Common.forceStartUploadThread = True
Common.appendOperation("强制运行上传线程")
return jsonify({"message":"ok","code":200,"status":0,"data":{
}})
@app.route("/encode/insert", methods=["POST"])
def insertEncode():
if "filename" in request.form and os.path.exists(request.form["filename"]):