Skip to content

Commit 6ea423d

Browse files
author
zaxtyson
committed
fixed vip custom folder download error
1 parent 1f662fc commit 6ea423d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
## `v2.5.7`
3737
- 修复 VIP 用户分享的递归文件夹无法下载的问题[#49](https://github.com/zaxtyson/LanZouCloud-CMD/issues/49)
3838
- 修复用户描述中带字符串`请输入密码`而文件没有设置提取码导致误判的问题
39-
- `get_folder_info_by_url()` 返回值中添加了子文件夹信息
40-
- `down_dir_by_id()``down_dir_by_url()` 函数增加参数 `recursive` 用于递归下载子文件夹
39+
- `get_folder_info_by_url()` `get_folder_info_by_id()` 返回值中添加了子文件夹信息, 见[API文档](https://github.com/zaxtyson/LanZouCloud-API/wiki/0x04-%E8%8E%B7%E5%8F%96%E6%96%87%E4%BB%B6(%E5%A4%B9)%E4%BF%A1%E6%81%AF#get_folder_info_by_urlshare_url-dir_pwd)
40+
- `down_dir_by_id()``down_dir_by_url()` 函数增加参数 `recursive` 用于递归下载子文件夹, 见[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_dir_by_urlshare_url-dir_pwd-save_path--mkdir-callback-failed_callback-overwrite-downloaded_handler-recursive)
4141

4242
## `v2.5.6`
4343
- 修复文件删除后解析无效分享链接崩溃的问题 [#36](https://github.com/zaxtyson/LanZouCloud-API/issues/36#issue-674817998)

lanzou/api/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1041,7 +1041,7 @@ def get_folder_info_by_url(self, share_url, dir_pwd='') -> FolderDetail:
10411041
sub_folders = FolderList()
10421042
# 文件夹描述放在 filesize 一栏, 迷惑行为
10431043
all_sub_folders = re.findall(
1044-
r'mbxfolder"><a href="(.+?)".+class="filename">(.+?)<div class="filesize">(.+?)</div>', html)
1044+
r'mbxfolder"><a href="(.+?)".+class="filename">(.+?)<div class="filesize">(.*?)</div>', html)
10451045
for url, name, desc in all_sub_folders:
10461046
url = self._host_url + url
10471047
time_str = datetime.today().strftime('%Y-%m-%d') # 网页没有时间信息, 设置为今天

0 commit comments

Comments
 (0)