mirror of
https://github.com/thsrite/MoviePilot-Plugins.git
synced 2026-05-30 07:26:45 +00:00
fix
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user