fix 修复重命名true/false/smart

This commit is contained in:
thsrite
2024-01-08 13:44:09 +08:00
parent 16fafb8e4d
commit 4c4c627db5
4 changed files with 6 additions and 4 deletions

View File

@@ -48,7 +48,7 @@ class ShortPlayMonitor(_PluginBase):
# 插件图标
plugin_icon = "Amule_B.png"
# 插件版本
plugin_version = "2.1"
plugin_version = "2.2"
# 插件作者
plugin_author = "thsrite"
# 作者主页
@@ -235,7 +235,8 @@ class ShortPlayMonitor(_PluginBase):
target_path = event_path.replace(source_dir, dest_dir)
# 目录重命名
if isinstance(rename_conf, bool):
if str(rename_conf) == "true" or str(rename_conf) == "false":
rename_conf = bool(rename_conf)
target = target_path.replace(dest_dir, "")
parent = Path(Path(target).parents[0])
last = target.replace(str(parent), "")