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