feat: add UpdateSiteCookieTool and enhance site operations

- Introduced UpdateSiteCookieTool to the toolset for managing site cookies.
- Updated __all__ exports in init.py and factory.py to include UpdateSiteCookieTool.
- Added async_get method in SiteOper for asynchronous retrieval of individual site records, improving database interaction.
This commit is contained in:
jxxghp
2025-11-18 11:34:37 +08:00
parent 8d1de245a6
commit eae1f8ee4d
4 changed files with 86 additions and 0 deletions

View File

@@ -17,6 +17,7 @@ from app.agent.tools.impl.search_torrents import SearchTorrentsTool
from app.agent.tools.impl.send_message import SendMessageTool
from app.agent.tools.impl.query_schedulers import QuerySchedulersTool
from app.agent.tools.impl.run_scheduler import RunSchedulerTool
from app.agent.tools.impl.update_site_cookie import UpdateSiteCookieTool
from app.core.plugin import PluginManager
from app.log import logger
from .base import MoviePilotTool
@@ -42,6 +43,7 @@ class MoviePilotToolFactory:
QueryDownloadersTool,
QuerySitesTool,
TestSiteTool,
UpdateSiteCookieTool,
GetRecommendationsTool,
QueryMediaLibraryTool,
SendMessageTool,