开始上传就登陆下

This commit is contained in:
Jerry Yan 2019-10-18 22:37:20 +08:00
parent 6536acb10e
commit 3be383c750
2 changed files with 6 additions and 6 deletions

View File

@ -36,11 +36,6 @@ network = [{
}] }]
def loginBilibili():
res = b.login(config["b_u"], config["b_p"])
appendOperation("登陆账号,结果为:["+res+"]")
def updateNetwork(): def updateNetwork():
global network global network
network.append({ network.append({
@ -147,7 +142,6 @@ downloadStatus = []
encodeStatus = [] encodeStatus = []
errors = [] errors = []
operations = [] operations = []
loginBilibili()
def appendOperation(obj): def appendOperation(obj):
@ -265,6 +259,11 @@ def appendError(obj):
errors = errors[-config["elc"]:] errors = errors[-config["elc"]:]
def loginBilibili():
res = b.login(config["b_u"], config["b_p"])
appendOperation("登陆账号,结果为:["+res+"]")
class downloader(XiGuaLiveApi): class downloader(XiGuaLiveApi):
playlist = None playlist = None

View File

@ -80,6 +80,7 @@ def encode():
def upload(): def upload():
date=datetime.strftime(datetime.now(), "%Y_%m_%d") date=datetime.strftime(datetime.now(), "%Y_%m_%d")
Common.appendUploadStatus("Upload Daemon Starting") Common.appendUploadStatus("Upload Daemon Starting")
Common.loginBilibili()
i = Common.uploadQueue.get() i = Common.uploadQueue.get()
while True: while True:
Common.doClean() Common.doClean()