From aafb2bc269152ae6e961baa4f0024b384059d460 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Tue, 12 Nov 2024 13:59:13 +0800 Subject: [PATCH] =?UTF-8?q?fix=20#3071=20=E5=A2=9E=E5=8A=A0=E7=AB=99?= =?UTF-8?q?=E7=82=B9=E6=B6=88=E6=81=AF=E5=BC=80=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/core/config.py | 2 ++ app/modules/indexer/parser/__init__.py | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/core/config.py b/app/core/config.py index 482b78e33..8eaee4020 100644 --- a/app/core/config.py +++ b/app/core/config.py @@ -151,6 +151,8 @@ class Config: 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 e1e82d6fe..de26f8e88 100644 --- a/app/modules/indexer/parser/__init__.py +++ b/app/modules/indexer/parser/__init__.py @@ -182,7 +182,8 @@ def parse(self): ) ) # 解析用户未读消息 - self._pase_unread_msgs() + if settings.SITE_MESSAGE: + self._pase_unread_msgs() # 解析用户上传、下载、分享率等信息 if self._user_traffic_page: self._parse_user_traffic_info(