mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 23:47:41 +08:00
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 <noreply@anthropic.com>
This commit is contained in:
committed by
jxxghp
co-authored by
Claude Sonnet 4.6
parent
fc2c77fbf1
commit
10a9e7293a
@@ -5,6 +5,7 @@ from typing import Optional, List
|
|||||||
from pydantic import Field
|
from pydantic import Field
|
||||||
|
|
||||||
from app.workflow.actions import BaseAction
|
from app.workflow.actions import BaseAction
|
||||||
|
from app.chain.media import MediaChain
|
||||||
from app.chain.search import SearchChain
|
from app.chain.search import SearchChain
|
||||||
from app.core.config import global_vars
|
from app.core.config import global_vars
|
||||||
from app.log import logger
|
from app.log import logger
|
||||||
@@ -72,7 +73,7 @@ class FetchTorrentsAction(BaseAction):
|
|||||||
continue
|
continue
|
||||||
# 识别媒体信息
|
# 识别媒体信息
|
||||||
if params.match_media:
|
if params.match_media:
|
||||||
torrent.media_info = searchchain.recognize_by_meta(
|
torrent.media_info = MediaChain().recognize_by_meta(
|
||||||
torrent.meta_info,
|
torrent.meta_info,
|
||||||
obtain_images=False,
|
obtain_images=False,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user