开始上传就登陆下
This commit is contained in:
parent
6536acb10e
commit
3be383c750
11
Common.py
11
Common.py
@ -36,11 +36,6 @@ network = [{
|
||||
}]
|
||||
|
||||
|
||||
def loginBilibili():
|
||||
res = b.login(config["b_u"], config["b_p"])
|
||||
appendOperation("登陆账号,结果为:["+res+"]")
|
||||
|
||||
|
||||
def updateNetwork():
|
||||
global network
|
||||
network.append({
|
||||
@ -147,7 +142,6 @@ downloadStatus = []
|
||||
encodeStatus = []
|
||||
errors = []
|
||||
operations = []
|
||||
loginBilibili()
|
||||
|
||||
|
||||
def appendOperation(obj):
|
||||
@ -265,6 +259,11 @@ def appendError(obj):
|
||||
errors = errors[-config["elc"]:]
|
||||
|
||||
|
||||
def loginBilibili():
|
||||
res = b.login(config["b_u"], config["b_p"])
|
||||
appendOperation("登陆账号,结果为:["+res+"]")
|
||||
|
||||
|
||||
class downloader(XiGuaLiveApi):
|
||||
playlist = None
|
||||
|
||||
|
@ -80,6 +80,7 @@ def encode():
|
||||
def upload():
|
||||
date=datetime.strftime(datetime.now(), "%Y_%m_%d")
|
||||
Common.appendUploadStatus("Upload Daemon Starting")
|
||||
Common.loginBilibili()
|
||||
i = Common.uploadQueue.get()
|
||||
while True:
|
||||
Common.doClean()
|
||||
|
Reference in New Issue
Block a user