mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-06 07:56:52 +08:00
fix: tolerate delayed OpenList metadata
This commit is contained in:
@@ -331,7 +331,18 @@ class Alist(StorageBase, metaclass=WeakSingleton):
|
||||
)
|
||||
return None
|
||||
|
||||
return self._delay_get_item(path, refresh=True)
|
||||
return self._delay_get_item(
|
||||
path, refresh=True
|
||||
) or self.__build_transfer_item(
|
||||
schemas.FileItem(
|
||||
storage=self.schema.value,
|
||||
type="dir",
|
||||
path=fileitem.path,
|
||||
name=name,
|
||||
basename=Path(name).stem,
|
||||
),
|
||||
path,
|
||||
)
|
||||
|
||||
def get_folder(self, path: Path) -> Optional[schemas.FileItem]:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user