diff --git a/README.md b/README.md index ec62f83..c72e2ce 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,10 @@ # 更新日志 +## `v2.6.2` + +- 修复文件后缀非小写导致的误判问题[#92](https://github.com/rachpt/lanzou-gui/issues/92) + ## `v2.6.1` - 修复下载某些 txt 文件失败的问题[#53](https://github.com/zaxtyson/LanZouCloud-API/issues/53) diff --git a/lanzou/api/__init__.py b/lanzou/api/__init__.py index 7faba86..40f9cea 100644 --- a/lanzou/api/__init__.py +++ b/lanzou/api/__init__.py @@ -1,5 +1,5 @@ from lanzou.api.core import LanZouCloud -version = '2.6.1' +version = '2.6.2' __all__ = ['utils', 'types', 'models', 'LanZouCloud', 'version'] diff --git a/lanzou/api/utils.py b/lanzou/api/utils.py index b5d94af..3ee1a58 100644 --- a/lanzou/api/utils.py +++ b/lanzou/api/utils.py @@ -73,7 +73,7 @@ def is_name_valid(filename: str) -> bool: 'xmind', 'enc', 'bds', 'bdi', 'ssf', 'it', 'gz' ) - return filename.split('.')[-1] in valid_suffix_list + return filename.split('.')[-1].lower() in valid_suffix_list def is_file_url(share_url: str) -> bool: