ntfy.sendMsg alert True

This commit is contained in:
cwx
2023-04-05 09:36:06 +08:00
parent c7c870c4fb
commit b9a55a8344
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -12,7 +12,7 @@ from utils.OldUtils import OldUtils
class ntfy:
@classmethod
def sendMsg(cls, msg,alert=True,sleep=None,error=None):
def sendMsg(cls, msg,alert=False,sleep=None,error=None):
try:
print(f"#ntfy: {msg}")
if alert:
@@ -139,10 +139,10 @@ class CBZUtils:
if list_img == None: list_img = Comic.getChapterImgs()
if ciUtils.isProgressDone():
print(f"该文件已校验成功,跳过中... {path}")
ntfy.sendMsg(f"该文件已校验成功,跳过中... {path}",alert=True)
return True
if fu.exists(path) and len(cls.zip_info(path)) == len(list_img):
print(f"文件校验成功:{path}")
ntfy.sendMsg(f"文件校验成功:{path}",alert=True)
ciUtils.setProgressDone()
return True
else: