From 71caad06551206e2b28e92c29e895fc46cc28c5e Mon Sep 17 00:00:00 2001 From: jxxghp Date: Tue, 20 Jan 2026 13:38:52 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E4=BC=98=E5=8C=96=E8=93=9D?= =?UTF-8?q?=E5=85=89=E7=9B=AE=E5=BD=95=E5=88=A4=E6=96=AD=EF=BC=8C=E5=87=8F?= =?UTF-8?q?=E5=B0=91=E7=9B=AE=E5=BD=95=E9=81=8D=E5=8E=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/chain/storage.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/chain/storage.py b/app/chain/storage.py index 48fe8d8a..86d339d5 100644 --- a/app/chain/storage.py +++ b/app/chain/storage.py @@ -139,7 +139,11 @@ class StorageChain(ChainBase): """ if not fileitem or fileitem.type != "dir": return False - return self.contains_bluray_subdirectories(self.list_files(fileitem)) + if self.get_file_item(storage=fileitem.storage, path=Path(fileitem.path) / "BDMV"): + return True + if self.get_file_item(storage=fileitem.storage, path=Path(fileitem.path) / "CERTIFICATE"): + return True + return False @staticmethod def contains_bluray_subdirectories(fileitems: Optional[List[schemas.FileItem]]) -> bool: