mirror of
https://github.com/hlt1995/qlScripts.git
synced 2026-11-05 23:26:44 +08:00
Update notify.py
This commit is contained in:
1 parent
96c151c514
commit
f5dbf69a95
1 file changed
+2
-2
+2
-2
@@ -18,7 +18,7 @@ import requests
|
||||
|
||||
# 修改:hlt1995
|
||||
# 编辑时间:2025-10-30
|
||||
# 1.新增Bark分段推送
|
||||
# 1.新增Bark分段推送,删除内容末尾多余空行
|
||||
|
||||
# 原先的 print 函数和主线程的锁
|
||||
_print = print
|
||||
@@ -128,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: # Bark分段推送
|
||||
if account_count > 1 and account_count % 7 == 1: # Bark分段推送
|
||||
segments.append('\n'.join(current_segment))
|
||||
current_segment = []
|
||||
current_segment.append(line)
|
||||
|
||||
Reference in new issue
Block a user