Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用通用封装的_get,确保通用参数都生效,如超时,避免卡在这里 #61

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
使用通用封装的_get,确保通用参数都生效,如超时,避免卡在这里
fzls committed May 15, 2021
commit d24fbeeddda98f70637216e6b301219d3d818040
2 changes: 1 addition & 1 deletion lanzou/api/core.py
Original file line number Diff line number Diff line change
@@ -1082,7 +1082,7 @@ def get_folder_info_by_url(self, share_url, dir_pwd='') -> FolderDetail:
if is_file_url(share_url):
return FolderDetail(LanZouCloud.URL_INVALID)
try:
html = requests.get(share_url, headers=self._headers).text
html = self._get(share_url, headers=self._headers).text
except requests.RequestException:
return FolderDetail(LanZouCloud.NETWORK_ERROR)
if '文件不存在' in html or '文件取消' in html: