From 10a9e7293ad418267a10b27f0d2a134ce77560ca Mon Sep 17 00:00:00 2001 From: DDSRem <1448139087@qq.com> Date: Tue, 12 May 2026 18:48:19 +0800 Subject: [PATCH] fix(workflow): use MediaChain instead of SearchChain for recognize_by_meta in fetch_torrents SearchChain does not have a recognize_by_meta method; this belongs to MediaChain. Co-Authored-By: Claude Sonnet 4.6 --- app/workflow/actions/fetch_torrents.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/workflow/actions/fetch_torrents.py b/app/workflow/actions/fetch_torrents.py index 6ae78f73..cad332d3 100644 --- a/app/workflow/actions/fetch_torrents.py +++ b/app/workflow/actions/fetch_torrents.py @@ -5,6 +5,7 @@ from typing import Optional, List from pydantic import Field from app.workflow.actions import BaseAction +from app.chain.media import MediaChain from app.chain.search import SearchChain from app.core.config import global_vars from app.log import logger @@ -72,7 +73,7 @@ class FetchTorrentsAction(BaseAction): continue # 识别媒体信息 if params.match_media: - torrent.media_info = searchchain.recognize_by_meta( + torrent.media_info = MediaChain().recognize_by_meta( torrent.meta_info, obtain_images=False, )