From 9b2f1a744f3ceaf5dfcf5829d96cde20e6f4edb3 Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Thu, 24 Oct 2019 21:57:00 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E9=99=86=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Common.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Common.py b/Common.py index f230441..4d033da 100644 --- a/Common.py +++ b/Common.py @@ -38,7 +38,7 @@ config = { "enc": "ffmpeg -i {f} -c:v copy -c:a copy -f mp4 {t} -y" } doCleanTime = datetime.now() -loginTime = datetime.now() - timedelta(days=7) +loginTime = datetime.now() _clean_flag = None delay = 30 b = Bilibili() @@ -308,6 +308,8 @@ def loginBilibili(force=False): loginTime = datetime.now() appendOperation("登陆账号,结果为:[{}]".format(res)) return res + else: + appendOperation("设置了不上传,所以不会登陆") class downloader(XiGuaLiveApi): @@ -424,3 +426,6 @@ def encodeVideo(name): return False Common.modifyLastEncodeStatus("Encode >{}< Finished".format(name)) uploadQueue.put(_new_name) + + +loginBilibili(True) \ No newline at end of file