随便更改了下,希望不要老是投多个稿件

This commit is contained in:
2022-10-24 14:07:44 +08:00
parent 79a49de4d5
commit 0b01f1d77d
4 changed files with 26 additions and 7 deletions

View File

@ -6,6 +6,7 @@ from .bilibiliupload import core, VideoPart
IS_LIVING = threading.Event()
IS_ENCODING = threading.Event()
IS_UPLOADING = threading.Event()
@ -112,6 +113,15 @@ class Bilibili:
"""
if len(self.parts) == 0:
return
if IS_ENCODING.is_set():
LOGGER.info("[{}]仍在压制,取消发布".format(title))
return
if IS_LIVING.is_set():
LOGGER.info("[{}]仍在直播,取消发布".format(title))
return
if IS_UPLOADING.is_set():
LOGGER.info("[{}]仍在上传,取消发布".format(title))
return
LOGGER.info("[{}]投稿中,请稍后".format(title))
copyright = 2 if source else 1
try: