|
@ -119,6 +119,7 @@ def check_cat(section, job_cat, keyword=None): |
|
|
|
|
|
|
|
|
def send_notification(title, msg, gtype, job_cat=None): |
|
|
def send_notification(title, msg, gtype, job_cat=None): |
|
|
""" Send Notification message """ |
|
|
""" Send Notification message """ |
|
|
|
|
|
logging.info("Sending notification: %s - %s (type=%s, job_cat=%s)", title, msg, gtype, job_cat) |
|
|
# Notification Center |
|
|
# Notification Center |
|
|
if sabnzbd.DARWIN and sabnzbd.cfg.ncenter_enable(): |
|
|
if sabnzbd.DARWIN and sabnzbd.cfg.ncenter_enable(): |
|
|
if check_classes(gtype, "ncenter") and check_cat("ncenter", job_cat): |
|
|
if check_classes(gtype, "ncenter") and check_cat("ncenter", job_cat): |
|
|