This commit is contained in:
2020-01-10 11:41:14 +08:00
parent 68fecca012
commit 39318a4cc9

View File

@ -63,7 +63,7 @@ network = [{
def reloadConfig(): def reloadConfig():
global config global config
if (os.path.exists('config.json')): if os.path.exists('config.json'):
_config_fp = open("config.json", "r", encoding="utf8") _config_fp = open("config.json", "r", encoding="utf8")
_config = json.load(_config_fp) _config = json.load(_config_fp)
config.update(_config) config.update(_config)
@ -341,7 +341,7 @@ def refreshDownloader():
def uploadVideo(name): def uploadVideo(name):
if not os.path.exists(name): if not os.path.exists(name):
Common.appendError("Upload File Not Exist {}".format(name)) appendError("Upload File Not Exist {}".format(name))
return return
loginBilibili() loginBilibili()
doClean() doClean()
@ -349,7 +349,7 @@ def uploadVideo(name):
b.preUpload(VideoPart(name, os.path.basename(name))) b.preUpload(VideoPart(name, os.path.basename(name)))
else: else:
appendUploadStatus("设置了不上传,所以[{}]不会上传了".format(name)) appendUploadStatus("设置了不上传,所以[{}]不会上传了".format(name))
if not Common.forceNotEncode: if not forceNotEncode:
os.remove(name) os.remove(name)