diff --git a/app/core/config.py b/app/core/config.py index 482b78e3..8eaee402 100644 --- a/app/core/config.py +++ b/app/core/config.py @@ -151,6 +151,8 @@ class ConfigModel(BaseModel): SEARCH_MULTIPLE_NAME: bool = False # 站点数据刷新间隔(小时) SITEDATA_REFRESH_INTERVAL: int = 6 + # 读取和发送站点消息 + SITE_MESSAGE: bool = True # 种子标签 TORRENT_TAG: str = "MOVIEPILOT" # 下载站点字幕 diff --git a/app/modules/indexer/parser/__init__.py b/app/modules/indexer/parser/__init__.py index e1e82d6f..de26f8e8 100644 --- a/app/modules/indexer/parser/__init__.py +++ b/app/modules/indexer/parser/__init__.py @@ -182,7 +182,8 @@ class SiteParserBase(metaclass=ABCMeta): ) ) # 解析用户未读消息 - self._pase_unread_msgs() + if settings.SITE_MESSAGE: + self._pase_unread_msgs() # 解析用户上传、下载、分享率等信息 if self._user_traffic_page: self._parse_user_traffic_info(