def onCachesUpdated(self): if ADDON.getSetting('notifications.enabled') == 'true': n = notification.Notification(self.database, ADDON.getAddonInfo('path')) n.scheduleNotifications() if ADDON.getSetting('autoplays.enabled') == 'true': n = autoplay.Autoplay(self.database, ADDON.getAddonInfo('path')) n.scheduleAutoplays() if ADDON.getSetting('autoplaywiths.enabled') == 'true': n = autoplaywith.Autoplaywith(self.database, ADDON.getAddonInfo('path')) n.scheduleAutoplaywiths() self.database.close(None) xbmc.log("[script.tvguide.fullscreen] Background Update Finished", xbmc.LOGNOTICE) if ADDON.getSetting('background.notify') == 'true': d = xbmcgui.Dialog() d.notification("TV Guide Fullscreen", "Finished Updating")
def onCachesUpdated(self): #BUG doesn't work on login (maybe always?) if ADDON.getSetting('notifications.enabled') == 'true': n = notification.Notification(self.database, ADDON.getAddonInfo('path')) #n.scheduleNotifications() if ADDON.getSetting('autoplays.enabled') == 'true': n = autoplay.Autoplay(self.database, ADDON.getAddonInfo('path')) #n.scheduleAutoplays() if ADDON.getSetting('autoplaywiths.enabled') == 'true': n = autoplaywith.Autoplaywith(self.database, ADDON.getAddonInfo('path')) #n.scheduleAutoplaywiths() self.database.close(None) xbmc.log("[script.baksy.guide] Background Update Finished", xbmc.LOGNOTICE) if ADDON.getSetting('background.notify') == 'true': d = xbmcgui.Dialog() d.notification("Baksy IPTV Guide", "Finished Updating")