mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-04 23:17:20 +08:00
refactor: 收口 V3 分层架构与插件兼容边界
This commit is contained in:
@@ -6,7 +6,7 @@ from lxml import etree
|
||||
|
||||
from app.runtime.config import settings
|
||||
from app.domain.context import Context
|
||||
from app.db.oper.site import SiteOper
|
||||
from app.application.site.query import get_configured_site_query_service
|
||||
from app.application.site.sites import SitesHelper # pylint: disable=no-name-in-module
|
||||
from app.runtime.log import logger
|
||||
from app.modules import _ModuleBase
|
||||
@@ -137,7 +137,7 @@ class SubtitleModule(_ModuleBase):
|
||||
return None
|
||||
# 采用API访问的站点由对应爬虫模块处理,详情页HTML不含字幕元素
|
||||
if torrent.site is not None:
|
||||
site = SiteOper().get(torrent.site)
|
||||
site = get_configured_site_query_service().get_sync(torrent.site)
|
||||
if site and (indexer := SitesHelper().get_indexer(site.domain)):
|
||||
if indexer.get("parser") == "mTorrent":
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user