def send_notify_osd(title, message):
 global _NTFOSD
 if (not _HAVE_NTFOSD):
  return T('Not available')
 error = 'NotifyOSD not working'
 icon = os.path.join(sabnzbd.DIR_PROG, 'sabnzbd.ico')
 _NTFOSD = (_NTFOSD or pynotify.init('icon-summary-body'))
 if _NTFOSD:
  logging.info('Send to NotifyOSD: %s / %s', title, message)
  try:
   note = pynotify.Notification(title, message, icon)
   note.show()
  except:
   logging.info(error)
   return error
  return None
 else:
  return error

def send_notify_osd ( title , message ) : global _NTFOSD if ( not _HAVE_NTFOSD ) : return T ( 'Not available' ) error = 'NotifyOSD not working' icon = os . path . join ( sabnzbd . DIR_PROG , 'sabnzbd.ico' ) _NTFOSD = ( _NTFOSD or pynotify . init ( 'icon-summary-body' ) ) if _NTFOSD : logging . info ( 'Send to NotifyOSD: %s / %s' , title , message ) try : note = pynotify . Notification ( title , message , icon ) note . show ( ) except : logging . info ( error ) return error return None else : return error
send a message to notifyosd .