You've already forked my-video-workflow
随便更改了下,希望不要老是投多个稿件
This commit is contained in:
@ -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:
|
||||
|
Reference in New Issue
Block a user