Skip to content

Commit

Permalink
fixed vip custom folder download error
Browse files Browse the repository at this point in the history
  • Loading branch information
zaxtyson committed Oct 7, 2020
1 parent 1f662fc commit 6ea423d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
## `v2.5.7`
- 修复 VIP 用户分享的递归文件夹无法下载的问题[#49](https://github.com/zaxtyson/LanZouCloud-CMD/issues/49)
- 修复用户描述中带字符串`请输入密码`而文件没有设置提取码导致误判的问题
- `get_folder_info_by_url()` 返回值中添加了子文件夹信息
- `down_dir_by_id()``down_dir_by_url()` 函数增加参数 `recursive` 用于递归下载子文件夹
- `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)
- `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)

## `v2.5.6`
- 修复文件删除后解析无效分享链接崩溃的问题 [#36](https://github.com/zaxtyson/LanZouCloud-API/issues/36#issue-674817998)
Expand Down
2 changes: 1 addition & 1 deletion lanzou/api/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,7 @@ def get_folder_info_by_url(self, share_url, dir_pwd='') -> FolderDetail:
sub_folders = FolderList()
# 文件夹描述放在 filesize 一栏, 迷惑行为
all_sub_folders = re.findall(
r'mbxfolder"><a href="(.+?)".+class="filename">(.+?)<div class="filesize">(.+?)</div>', html)
r'mbxfolder"><a href="(.+?)".+class="filename">(.+?)<div class="filesize">(.*?)</div>', html)
for url, name, desc in all_sub_folders:
url = self._host_url + url
time_str = datetime.today().strftime('%Y-%m-%d') # 网页没有时间信息, 设置为今天
Expand Down

0 comments on commit 6ea423d

Please sign in to comment.