From 1fb91dadab3158df513a915f1261eed87d91da2e Mon Sep 17 00:00:00 2001 From: thsrite Date: Thu, 27 Jun 2024 14:51:29 +0800 Subject: [PATCH] fix --- plugins/libraryduplicatecheck/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/libraryduplicatecheck/__init__.py b/plugins/libraryduplicatecheck/__init__.py index e671db8..01fcc61 100644 --- a/plugins/libraryduplicatecheck/__init__.py +++ b/plugins/libraryduplicatecheck/__init__.py @@ -248,7 +248,7 @@ class LibraryDuplicateCheck(_PluginBase): logger.info(f"文件保留规则:{str(retain_type)} Keeping: {keep_path}") # Delete the other duplicate files (if needed) for path in paths: - if (Path(path).exists() or os.path.islink(path)) and path != keep_path: + if (Path(path).exists() or os.path.islink(path)) and str(path) != str(keep_path): cloud_file = os.readlink(path) delete_duplicate_files += 1 # 删除文件、nfo、jpg等同名文件