mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-04-14 02:00:31 +08:00
fix
This commit is contained in:
@@ -525,10 +525,7 @@ def clone_plugin(plugin_id: str,
|
||||
)
|
||||
|
||||
if success:
|
||||
# 插件分身创建成功后,处理插件文件夹:如果原插件在某个文件夹中,则将分身插件也添加到同一个文件夹中
|
||||
clone_id = f"{plugin_id}{clone_data.get('suffix', '').lower()}"
|
||||
_add_clone_to_plugin_folder(plugin_id, clone_id)
|
||||
|
||||
_add_clone_to_plugin_folder(plugin_id, message)
|
||||
return schemas.Response(success=True, message="插件分身创建成功")
|
||||
else:
|
||||
return schemas.Response(success=False, message=message)
|
||||
|
||||
@@ -1118,7 +1118,7 @@ class PluginManager(metaclass=Singleton):
|
||||
logger.info(f"分身插件 {clone_id} 配置重新初始化完成")
|
||||
|
||||
logger.info(f"插件分身 {clone_id} 创建成功")
|
||||
return True, "插件分身创建成功"
|
||||
return True, clone_id
|
||||
|
||||
except Exception as e:
|
||||
logger.error(f"创建插件分身失败:{str(e)}")
|
||||
|
||||
Reference in New Issue
Block a user