mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-07 08:26:53 +08:00
fix: clear Rust parse options cache after updating custom identifiers (#6097)
This commit is contained in:
@@ -7,6 +7,7 @@ from pydantic import BaseModel, Field
|
|||||||
|
|
||||||
from app.agent.tools.base import MoviePilotTool
|
from app.agent.tools.base import MoviePilotTool
|
||||||
from app.agent.tools.tags import ToolTag
|
from app.agent.tools.tags import ToolTag
|
||||||
|
from app.core.metainfo import clear_rust_parse_options_cache
|
||||||
from app.db.systemconfig_oper import SystemConfigOper
|
from app.db.systemconfig_oper import SystemConfigOper
|
||||||
from app.log import logger
|
from app.log import logger
|
||||||
from app.schemas.types import SystemConfigKey
|
from app.schemas.types import SystemConfigKey
|
||||||
@@ -85,6 +86,7 @@ class UpdateCustomIdentifiersTool(MoviePilotTool):
|
|||||||
SystemConfigKey.CustomIdentifiers, value
|
SystemConfigKey.CustomIdentifiers, value
|
||||||
)
|
)
|
||||||
if success:
|
if success:
|
||||||
|
clear_rust_parse_options_cache()
|
||||||
return json.dumps(
|
return json.dumps(
|
||||||
{
|
{
|
||||||
"success": True,
|
"success": True,
|
||||||
|
|||||||
Reference in New Issue
Block a user