def _onMessageNote(self, message):
     if not self.executeKodiCmd(message):
         # Show instantly if enabled
         if getSetting('handling_note',0) == 0 and pushhandler.canHandle(message):
             pushhandler.handlePush(message)
         # else show notification if enabled
         elif getSetting('handling_note',0) == 1:
             self.showNotificationFromMessage(message)
 def _onMessageList(self, message):
     # Show instantly if enabled
     if common.getSetting('handling_list',0) == 0 and pushhandler.canHandle(message):
         pushhandler.handlePush(message)
     elif common.getSetting('handling_list',0) == 1:
         self.showNotificationFromMessage(message)
     else:
         return False
     return True
Exemplo n.º 3
0
 def _onMessageAddress(self, message):
     # Show instantly if enabled
     if common.getSetting('handling_address',
                          0) == 0 and pushhandler.canHandle(message):
         pushhandler.handlePush(message)
     elif common.getSetting('handling_address', 0) == 1:
         self.showNotificationFromMessage(message)
     else:
         return False
     return True
Exemplo n.º 4
0
 def _onMessageNote(self, message):
     if not self.executeKodiCmd(message):
         # Show instantly if enabled
         if common.getSetting('handling_note',
                              0) == 0 and pushhandler.canHandle(message):
             pushhandler.handlePush(message)
         # else show notification if enabled
         elif common.getSetting('handling_note', 0) == 1:
             self.showNotificationFromMessage(message)
         else:
             return False
     return True
Exemplo n.º 5
0
 def _onMessageFile(self, message):
     mediaType = pushhandler.canHandle(message)
     if not mediaType: return False
     return self.handleMediaPush(mediaType, message)
 def _onMessageFile(self, message):
     mediaType = pushhandler.canHandle(message)
     if not mediaType: return False
     return self.handleMediaPush(mediaType,message)
 def _onMessageAddress(self, message):
     # Show instantly if enabled
     if getSetting('handling_address',0) == 0 and pushhandler.canHandle(message):
         pushhandler.handlePush(message)
     elif getSetting('handling_address',0) == 1:
         self.showNotificationFromMessage(message)