From 12f10ebedf8f98323a70a8950ec4d938904072a1 Mon Sep 17 00:00:00 2001 From: zhanglijun <1074176954@qq.com> Date: Fri, 6 Dec 2024 00:40:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=9F=B3=E8=BD=A8=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E9=87=8D=E5=91=BD=E5=90=8D=E6=95=B4=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/modules/filemanager/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/modules/filemanager/__init__.py b/app/modules/filemanager/__init__.py index e86b99bd..38efe6bb 100644 --- a/app/modules/filemanager/__init__.py +++ b/app/modules/filemanager/__init__.py @@ -702,7 +702,7 @@ class FileManagerModule(_ModuleBase): return False, errmsg except Exception as error: logger.info(f"字幕 {new_file} 出错了,原因: {str(error)}") - return False, "" + return True, "" def __transfer_audio_track_files(self, fileitem: FileItem, target_storage: str, target_file: Path, transfer_type: str) -> Tuple[bool, str]: @@ -726,7 +726,7 @@ class FileManagerModule(_ModuleBase): file_list: List[FileItem] = storage_oper.list(parent_item) # 匹配音轨文件 pending_file_list: List[FileItem] = [file for file in file_list - if Path(file.name).stem == org_path.name + if Path(file.name).stem == org_path.stem and file.type == "file" and file.extension and f".{file.extension.lower()}" in settings.RMT_AUDIOEXT] if len(pending_file_list) == 0: