def start(): import urllib #re-import ZattooDB to prevent "convert_timestamp" error from resources.zattooDB import ZattooDB _zattooDB_ = ZattooDB() _zattooDB_.cleanProg(True) #re-import ZattooDB to prevent "convert_timestamp" error from resources.zattooDB import ZattooDB _zattooDB_ = ZattooDB() _zattooDB_.updateChannels(True) #re-import ZattooDB to prevent "convert_timestamp" error from resources.zattooDB import ZattooDB _zattooDB_ = ZattooDB() _zattooDB_.updateProgram() startTime = datetime.datetime.now() #-datetime.timedelta(minutes = 60) endTime = datetime.datetime.now() + datetime.timedelta(minutes=20) #re-import ZattooDB to prevent "convert_timestamp" error from resources.zattooDB import ZattooDB _zattooDB_ = ZattooDB() #xbmcgui.Dialog().notification(localString(31916), localString(30110), __addon__.getAddonInfo('path') + '/icon.png', 3000, False) _zattooDB_.getProgInfo(True, startTime, endTime) #xbmcgui.Dialog().notification(localString(31106), localString(31915), __addon__.getAddonInfo('path') + '/icon.png', 3000, False) #xbmc.executebuiltin("ActivateWindow(busydialog)") recInfo() _library_.delete_library() # add by samoth _library_.make_library()
def start(): import urllib #xbmc.executebuiltin('ActivateWindow(busydialognocancel)') #re-import ZattooDB to prevent "convert_timestamp" error from resources.zattooDB import ZattooDB _zattooDB_ = ZattooDB() _zattooDB_.cleanProg(True) #re-import ZattooDB to prevent "convert_timestamp" error from resources.zattooDB import ZattooDB _zattooDB_ = ZattooDB() _zattooDB_.updateChannels() #re-import ZattooDB to prevent "convert_timestamp" error from resources.zattooDB import ZattooDB _zattooDB_ = ZattooDB() _zattooDB_.updateProgram() try: tomorrow = datetime.datetime.today() + datetime.timedelta(days=1) _zattooDB_.updateProgram(tomorrow) except:pass startTime=datetime.datetime.now()#-datetime.timedelta(minutes = 60) endTime=datetime.datetime.now()+datetime.timedelta(minutes = 20) #re-import ZattooDB to prevent "convert_timestamp" error from resources.zattooDB import ZattooDB _zattooDB_ = ZattooDB() #xbmcgui.Dialog().notification(localString(31916), localString(30110), __addon__.getAddonInfo('path') + '/icon.png', 3000, False) if __addon__.getSetting('dbonstart') == 'true': _zattooDB_.getProgInfo(True, startTime, endTime) recInfo() _library_.delete_library() # add by samoth _library_.make_library()