开始上传就登陆下
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():
|
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
|
||||||
|
|
||||||
|
@ -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()
|
||||||
|
Reference in New Issue
Block a user