From 87eb208669a10c410c0d639ad3a5179c5ca36561 Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Mon, 18 Apr 2022 09:41:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E7=A9=BA=E9=80=BB=E8=BE=91=E4=B8=8E?= =?UTF-8?q?=E5=88=9B=E5=BB=BA=E9=80=BB=E8=BE=91=E5=86=B2=E7=AA=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controller/api/bilirecorder_blueprint.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/controller/api/bilirecorder_blueprint.py b/controller/api/bilirecorder_blueprint.py index 1fb9f9c..a26a4b8 100644 --- a/controller/api/bilirecorder_blueprint.py +++ b/controller/api/bilirecorder_blueprint.py @@ -33,7 +33,11 @@ def auto_submit_task(): def clear_item(): global bili_record_workflow_item - bili_record_workflow_item = None + bili_record_workflow_item = Workflow() + bili_record_workflow_item.name = VIDEO_TITLE.format(datetime.now().strftime("%Y%m%d")) + bili_record_workflow_item.automatic = True + bili_record_workflow_item.editing = True + def commit_item():