From 880b129e63a9e78c1a9c0fbbe8060b1206794720 Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Tue, 26 Jul 2022 11:08:43 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=B4=E6=92=AD=E7=8A=B6=E6=80=81=E6=8A=96?= =?UTF-8?q?=E5=8A=A8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- workflow/bilibili.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/workflow/bilibili.py b/workflow/bilibili.py index 9caa541..758efee 100644 --- a/workflow/bilibili.py +++ b/workflow/bilibili.py @@ -56,8 +56,9 @@ class Bilibili: :type no_reprint: int """ self.pre_upload(parts) - self.finish_upload(title, tid, tag, desc, source, cover, no_reprint) - self.clear() + if not IS_LIVING.is_set(): + self.finish_upload(title, tid, tag, desc, source, cover, no_reprint) + self.clear() def pre_upload(self, parts: "VideoPart", max_retry=5): """