From 8435b323f503cae6cda0292be622da2a07283d34 Mon Sep 17 00:00:00 2001 From: thsrite Date: Sat, 10 Aug 2024 19:57:47 +0800 Subject: [PATCH] fix --- plugins/cloudsyncdel/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/cloudsyncdel/__init__.py b/plugins/cloudsyncdel/__init__.py index c2e176a..7407da6 100644 --- a/plugins/cloudsyncdel/__init__.py +++ b/plugins/cloudsyncdel/__init__.py @@ -240,10 +240,10 @@ class CloudSyncDel(_PluginBase): 路径转换 """ if paths and paths.keys(): - for library_path in list(paths.keys()): + for library_path in paths.keys(): if str(file_path).startswith(str(library_path)): # 替换网盘路径 - return str(file_path).replace(library_path, paths.get(library_path)) + return str(file_path).replace(str(library_path), paths.get(str(library_path))) # 未匹配到路径,返回原路径 return file_path