From cec5cf22de2508b958b7dcad81a81e6de1a9046e Mon Sep 17 00:00:00 2001 From: Attente <19653207+wikrin@users.noreply.github.com> Date: Thu, 26 Dec 2024 02:41:49 +0800 Subject: [PATCH] feat(transfer): Update file_items filtering logic to allow bluray directories --- app/chain/transfer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/chain/transfer.py b/app/chain/transfer.py index a6c1318f..fd07c79e 100644 --- a/app/chain/transfer.py +++ b/app/chain/transfer.py @@ -728,8 +728,8 @@ class TransferChain(ChainBase, metaclass=Singleton): file_items = [f for f in file_items if formaterHandler.match(f[0].name)] # 过滤后缀和大小 - file_items = [f for f in file_items - if __is_allow_extensions(f[0].extension) and __is_allow_filesize(f[0].size, min_filesize)] + file_items = [f for f in file_items if f[1] # 蓝光目录不过滤 + or __is_allow_extensions(f[0].extension) and __is_allow_filesize(f[0].size, min_filesize)] if not file_items: logger.warn(f"{fileitem.path} 没有找到可整理的媒体文件") return False, f"{fileitem.name} 没有找到可整理的媒体文件"