From 143367c29ef8ded45f6d0bc1707142c7a03fc2d0 Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Sun, 1 May 2022 10:39:51 +0800 Subject: [PATCH] =?UTF-8?q?start=5Ftime=5Fts=E8=AE=A1=E7=AE=97=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controller/api/bilirecorder_blueprint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/api/bilirecorder_blueprint.py b/controller/api/bilirecorder_blueprint.py index a7af3ea..457f78c 100644 --- a/controller/api/bilirecorder_blueprint.py +++ b/controller/api/bilirecorder_blueprint.py @@ -109,7 +109,7 @@ def collect_danmaku_files(workflow: Optional[Workflow]): if start_time_ts is None: if clip.duration is None or clip.duration == 0: clip.duration = get_video_real_duration(clip.full_path) - start_time_ts = datetime.now().timestamp() - clip.duration + start_time_ts = datetime.now().timestamp() - float(clip.duration) for danmaku_file in glob(os.path.join(XIGUALIVE_RECORDER_DIRECTORY, "*.xml")): relpath = os.path.relpath(danmaku_file, XIGUALIVE_RECORDER_DIRECTORY) danmaku = DanmakuClip.query.filter(