From e99552e1d42518df5c57b2dd1a0d5e812a9d22cb Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Mon, 28 Nov 2022 10:29:26 +0800 Subject: [PATCH] =?UTF-8?q?=E9=81=BF=E5=85=8D=E9=87=8D=E5=A4=8D=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=90=8C=E4=B8=80=E4=B8=AA=E5=BC=B9=E5=B9=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controller/api/bilirecorder_blueprint.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/controller/api/bilirecorder_blueprint.py b/controller/api/bilirecorder_blueprint.py index 68d98cd..ba86e57 100644 --- a/controller/api/bilirecorder_blueprint.py +++ b/controller/api/bilirecorder_blueprint.py @@ -138,6 +138,12 @@ def collect_danmaku_files(workflow: Optional[Workflow]): DanmakuClip.file == relpath, DanmakuClip.base_path == BILILIVE_RECORDER_DIRECTORY ).first() + if danmaku is None: + if len(clip.danmaku_clips) > 0: + for _danmaku in clip.danmaku_clips: + if _danmaku.file == relpath: + danmaku = _danmaku + break if danmaku is None: try: start_time_ts = get_file_start(danmaku_file)