Skip to content

Commit 4516966

Browse files
author
zaxtyson
committed
fixed many bugs
1 parent ec5098b commit 4516966

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
## `v2.5.5`
3636
- 修复下载两个同名文件时断点续传功能异常的问题[#35](https://github.com/zaxtyson/LanZouCloud-API/issues/35#issue-668534695)
3737
- 下载函数新增 `overwrite` 参数,确定是否覆盖本地文件(默认不覆盖,自动重命名)
38-
- 下载函数新增 `downloaded_handler` 参数,可设置回调函数处理下载完成的文件, 具体见 [API文档](https://github.com/zaxtyson/LanZouCloud-API/wiki/0x06-%E4%B8%8A%E4%BC%A0%E5%92%8C%E4%B8%8B%E8%BD%BD#down_file_by_urlshare_url-pwd-save_path--callback-overwrite-downloaded_handler)
38+
- 下载函数新增 `downloaded_handler` 参数,可设置回调函数处理下载完成的文件, 具体见 [API文档](https://github.com/zaxtyson/LanZouCloud-API/wiki/0x06-%E4%B8%8A%E4%BC%A0%E5%92%8C%E4%B8%8B%E8%BD%BD-*#down_file_by_urlshare_url-pwd-save_path--callback-overwrite-downloaded_handler)
3939
- 修复蓝奏云将文件名敏感词([小姐](https://zaxtyson.lanzous.com/ic59zpg))替换为`*`导致无法创建文件的问题
4040
- 修复文件大小中出现 `,` 导致无法完整匹配文件大小的问题
4141

lanzou/api/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,9 +352,9 @@ def get_file_list(self, folder_id=-1) -> FileList:
352352
for file in resp["text"]:
353353
file_list.append(File(
354354
id=int(file['id']),
355-
name=file['name_all'],
355+
name=file['name_all'].replace("&", "&"),
356356
time=time_format(file['time']), # 上传时间
357-
size=file['size'], # 文件大小
357+
size=file['size'].replace(",", ""), # 文件大小
358358
type=file['name_all'].split('.')[-1], # 文件类型
359359
downs=int(file['downs']), # 下载次数
360360
has_pwd=True if int(file['onof']) == 1 else False, # 是否存在提取码

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setuptools.setup(
77
name="lanzou-api",
8-
version="2.5.5",
8+
version="2.5.5.1",
99
author="zaxtyson",
1010
author_email="zaxtyson@foxmail.com",
1111
description="LanZouCloud API",

0 commit comments

Comments
 (0)