Skip to content

Commit

Permalink
0.36.14:
Browse files Browse the repository at this point in the history
    5. TaskStateModify添加新的状态8
    6. AlistPath.re_stat()移除list_file调用。
  • Loading branch information
lee-cq committed Aug 22, 2024
1 parent 8ae45f9 commit 5258335
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion alist_sdk/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"offline_download",
"offline_download_transfer",
]
TaskStateModify = Literal[0, 1, 2, 3, 4, 5, 6, 7]
TaskStateModify = Literal[0, 1, 2, 3, 4, 5, 6, 7, 8]
TaskStatusModify = Literal[
"",
"waiting",
Expand Down
2 changes: 1 addition & 1 deletion alist_sdk/path_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def set_stat(self, value: RawItem | Item):
def re_stat(self, retry=2, timeout=1) -> Item:
if hasattr(self, "_stat"):
delattr(self, "_stat")
self.client.list_files(self.parent.as_posix(), per_page=1, refresh=True)
# self.client.list_files(self.parent.as_posix(), per_page=1, refresh=True)
return self.raw_stat(retry=retry, timeout=timeout)

def is_dir(self):
Expand Down
4 changes: 3 additions & 1 deletion alist_sdk/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,10 @@
2. 异步客户端添加 client.login_username 属性。
3. 移除为保持兼容的 alist_sdk.path_lib_old.py 文件
4. 添加测试
5. TaskStateModify添加新的状态8
6. AlistPath.re_stat()移除list_file调用。
"""

__version__ = "0.36.14a4"
__version__ = "0.36.14a6"

ALIST_VERSION = "v3.36.0"

0 comments on commit 5258335

Please sign in to comment.