From 810b9ff27a178040991549698ef0f583de03923c Mon Sep 17 00:00:00 2001 From: hlt1995 <93117676+hlt1995@users.noreply.github.com> Date: Thu, 30 Oct 2025 21:30:34 +0800 Subject: [PATCH] Update and rename notify.py to notify_251030.py --- Backup/{notify.py => notify_251030.py} | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) rename Backup/{notify.py => notify_251030.py} (99%) diff --git a/Backup/notify.py b/Backup/notify_251030.py similarity index 99% rename from Backup/notify.py rename to Backup/notify_251030.py index eac939e..b97aa5d 100644 --- a/Backup/notify.py +++ b/Backup/notify_251030.py @@ -16,6 +16,10 @@ from email.utils import formataddr import requests +# 修改:hlt1995 +# 编辑时间:2025-10-30 +# 1.新增Bark分段推送 + # 原先的 print 函数和主线程的锁 _print = print mutex = threading.Lock() @@ -124,7 +128,7 @@ def bark(title: str, content: str) -> None: for line in lines: if any(keyword in line for keyword in ['账号', '用户', 'user', 'account']): account_count += 1 - if account_count > 1 and account_count % 6 == 1: + if account_count > 1 and account_count % 6 == 1: # Bark分段推送 segments.append('\n'.join(current_segment)) current_segment = [] current_segment.append(line)