mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 15:38:19 +08:00
fix(Alist): 添加__len__()
This commit is contained in:
@@ -615,6 +615,9 @@ class Alist(StorageBase, metaclass=WeakSingleton):
|
|||||||
self.uploaded_size = 0
|
self.uploaded_size = 0
|
||||||
self.file_size = file_path.stat().st_size
|
self.file_size = file_path.stat().st_size
|
||||||
|
|
||||||
|
def __len__(self):
|
||||||
|
return self.file_size
|
||||||
|
|
||||||
def read(self, size=-1):
|
def read(self, size=-1):
|
||||||
if global_vars.is_transfer_stopped(path.as_posix()):
|
if global_vars.is_transfer_stopped(path.as_posix()):
|
||||||
logger.info(f"【OpenList】{path} 上传已取消!")
|
logger.info(f"【OpenList】{path} 上传已取消!")
|
||||||
|
|||||||
Reference in New Issue
Block a user