ntfy.sendMsg alert True
This commit is contained in:
+3
-3
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user