mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 23:47:41 +08:00
fix: only fetch images for scrape flows
Default title and path recognition to skip image fetching, while keeping scrape entrypoints and transfer-to-scrape paths populated with image data. This preserves lightweight recognition behavior without breaking metadata scraping.
This commit is contained in:
+4
-4
@@ -451,7 +451,7 @@ class MediaChain(ChainBase, ConfigReloadMixin, metaclass=Singleton):
|
||||
self,
|
||||
metainfo: MetaBase,
|
||||
episode_group: Optional[str] = None,
|
||||
obtain_images: bool = True,
|
||||
obtain_images: bool = False,
|
||||
) -> Optional[MediaInfo]:
|
||||
"""
|
||||
根据主副标题识别媒体信息
|
||||
@@ -576,7 +576,7 @@ class MediaChain(ChainBase, ConfigReloadMixin, metaclass=Singleton):
|
||||
self,
|
||||
path: str,
|
||||
episode_group: Optional[str] = None,
|
||||
obtain_images: bool = True,
|
||||
obtain_images: bool = False,
|
||||
) -> Optional[Context]:
|
||||
"""
|
||||
根据文件路径识别媒体信息
|
||||
@@ -1386,7 +1386,7 @@ class MediaChain(ChainBase, ConfigReloadMixin, metaclass=Singleton):
|
||||
self,
|
||||
metainfo: MetaBase,
|
||||
episode_group: Optional[str] = None,
|
||||
obtain_images: bool = True,
|
||||
obtain_images: bool = False,
|
||||
) -> Optional[MediaInfo]:
|
||||
"""
|
||||
根据主副标题识别媒体信息(异步版本)
|
||||
@@ -1510,7 +1510,7 @@ class MediaChain(ChainBase, ConfigReloadMixin, metaclass=Singleton):
|
||||
self,
|
||||
path: str,
|
||||
episode_group: Optional[str] = None,
|
||||
obtain_images: bool = True,
|
||||
obtain_images: bool = False,
|
||||
) -> Optional[Context]:
|
||||
"""
|
||||
根据文件路径识别媒体信息(异步版本)
|
||||
|
||||
@@ -1291,10 +1291,10 @@ class TransferChain(ChainBase, ConfigReloadMixin, metaclass=Singleton):
|
||||
# 识别媒体信息
|
||||
mediainfo = MediaChain().recognize_by_meta(
|
||||
task.meta,
|
||||
obtain_images=False,
|
||||
obtain_images=True,
|
||||
)
|
||||
|
||||
# 更新媒体图片
|
||||
# 补充图片,确保整理后直接进入刮削的媒体信息已带图片地址。
|
||||
if mediainfo:
|
||||
self.obtain_images(mediainfo=mediainfo)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user