Skip to content

Commit

Permalink
fix #3071 增加站点消息开关
Browse files Browse the repository at this point in the history
  • Loading branch information
jxxghp committed Nov 12, 2024
1 parent 9dde564 commit aafb2bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/core/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ class Config:
SEARCH_MULTIPLE_NAME: bool = False
# 站点数据刷新间隔(小时)
SITEDATA_REFRESH_INTERVAL: int = 6
# 读取和发送站点消息
SITE_MESSAGE: bool = True
# 种子标签
TORRENT_TAG: str = "MOVIEPILOT"
# 下载站点字幕
Expand Down
3 changes: 2 additions & 1 deletion app/modules/indexer/parser/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit aafb2bc

Please sign in to comment.