支持不上传视频(待测试)

This commit is contained in:
Jerry Yan 2019-04-08 18:32:23 +08:00
parent c3a965f284
commit b55686d095
2 changed files with 6 additions and 0 deletions

View File

@ -25,6 +25,7 @@ updateTime = ""
forceStopDownload = False
forceNotBroadcasting = False
forceNotUpload = False
uploadQueue = queue.Queue()
encodeQueue = queue.Queue()

View File

@ -66,7 +66,12 @@ def encode():
def upload(date=datetime.strftime(datetime.now(), "%Y_%m_%d")):
i = uploadQueue.get()
appendUploadStatus("Upload Daemon Starting")
while True:
if forceNotUpload:
modifyLastUploadStatus("设置了不上传,所以不会上传了")
i = uploadQueue.get()
continue
if isinstance(i, bool):
if i is True:
b.finishUpload(config["t_t"].format(date), 17, config["tag"], config["des"],