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
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion lanzou/api/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from lanzou.api.core import LanZouCloud

version = '2.6.5'
version = '2.6.5.1'

__all__ = ['utils', 'types', 'models', 'LanZouCloud', 'version']
2 changes: 1 addition & 1 deletion lanzou/api/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down