提交 1f73dfb5 编写于 作者: H Hsury

更新文件

上级 c93d6b93
......@@ -25,6 +25,12 @@
## 使用指南
### 准备
前往[发布页](https://github.com/Hsury/BiliDrive/releases/latest)获取可直接运行的二进制文件
亦可[下载源代码](https://github.com/Hsury/BiliDrive/archive/master.zip)后使用Python 3.6或更高版本运行
### 登录
```
......
......@@ -196,6 +196,9 @@ def upload_handle(args):
log("Cookies加载失败, 请先登录")
return None
file_name = args.file
if not os.path.exists(file_name):
log(f"{file_name}不存在")
return None
log(f"上传: {os.path.basename(file_name)} ({os.path.getsize(file_name) / 1024 / 1024:.2f} MB)")
first_4mb_sha1 = calc_sha1(read_in_chunks(file_name, chunk_size=4 * 1024 * 1024, chunk_number=1), hexdigest=True)
history = read_history()
......@@ -371,6 +374,7 @@ if __name__ == "__main__":
args = parser.parse_args()
try:
args.func(args)
break
except AttributeError:
shell = True
parser.print_help()
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册