def CheckForUpdate(): if xbmcgui.Window(10000).getProperty('OTT_UPDATING') != 'True': import update update.checkForUpdate(silent = True) return while xbmcgui.Window(10000).getProperty('OTT_UPDATING') == 'True': xbmc.sleep(1000)
def CheckForUpdate(): if xbmcgui.Window(10000).getProperty("OTT_UPDATING") != "True": import update update.checkForUpdate(silent=True) return while xbmcgui.Window(10000).getProperty("OTT_UPDATING") == "True": xbmc.sleep(1000)
def FirstRun(): d = xbmcgui.Dialog() d.ok(TITLE + ' - ' + VERSION, 'This is a new version of TV Guide Dixie.' , 'It requires some extra stuff to be installed.', 'Unfortunately, your previous settings will be lost.') db = os.path.join(datapath, 'source.db') try: os.remove(db) except: pass try: os.makedirs(logofolder) except: pass update.checkForUpdate(silent = 0)
def FirstRun(): d = xbmcgui.Dialog() d.ok(TITLE + ' - ' + VERSION, 'This is a new version of TV Guide Dixie.', 'It requires some extra stuff to be installed.', 'Unfortunately, your previous settings will be lost.') db = os.path.join(datapath, 'source.db') try: os.remove(db) except: pass try: os.makedirs(logofolder) except: pass update.checkForUpdate(silent=0)
def main(): isUpdated = update.checkForUpdate() if(isUpdated): execfile(filename) sys.exit() print '- Server Watch -' print 'Version 1.08' print print 'Commands:' print 'playerCounts() - Prints out how many people are on each server' print serverCheck = threading.Thread(target=checkServers) serverCheck.start()
import source ID = 'script.tvguidedixie' ADDON = xbmcaddon.Addon(id = ID) dst = os.path.join(xbmc.translatePath('special://userdata/keymaps'), 'zOTT.xml') if os.path.exists(dst): os.remove(dst) xbmc.sleep(1000) xbmc.executebuiltin('Action(reloadkeymaps)') import update update.checkForUpdate(silent = True) class Service(object): def __init__(self): self.database = source.Database(self) self.database.initializeS(self.onInitS) def onInitS(self, success): if success: self.database.initializeP(self.onInitP) else: self.database.close()
# the Free Software Foundation; either version 2, or (at your option) # any later version. # # This Program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with XBMC; see the file COPYING. If not, write to # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. # http://www.gnu.org/copyleft/gpl.html # import xbmc import xbmcaddon import xbmcgui import utils import update utils.log("Update Service Starting") try: update.checkForUpdate(silent = 1) except Exception, e: utils.log('Error in TLBB Service') utils.log(e)
# Copyright (C) 2013 Sean Poyser # # This Program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # # This Program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with XBMC; see the file COPYING. If not, write to # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. # http://www.gnu.org/copyleft/gpl.html # import utils import update utils.log("Update Service Starting") try: update.checkForUpdate(silent = 1) except Exception, e: utils.log('Error in TLBB Service') utils.log(e)
# You should have received a copy of the GNU General Public License # along with this Program; see the file LICENSE.txt. If not, write to # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. # http://www.gnu.org/copyleft/gpl.html # import xbmcaddon import notification import xbmc import source ID = 'script.tvguidedixie' ADDON = xbmcaddon.Addon(id = ID) import update update.checkForUpdate(silent = True) class Service(object): def __init__(self): self.database = source.Database(self) self.database.initializeS(self.onInitS) def onInitS(self, success): if success: self.database.initializeP(self.onInitP) else: self.database.close()
app = ui.Application(update, theme = ui.SkinableTheme) app.windowSurfaceFlags = SWSURFACE | SRCALPHA gdata.app = app # resources import res res.initialize() pygame.scrap.init() # check for client updates import update as appUpdate try: appUpdate.checkForUpdate() except SystemExit, e: raise e except: log.warning('OSCI', 'Update failed.') # load resources res.loadResources() # client import client, handler from igeclient.IClient import IClientException client.initialize(gdata.config.game.server, handler) # display login
app = ui.Application(update, theme=ui.SkinableTheme) app.windowSurfaceFlags = SWSURFACE | SRCALPHA gdata.app = app # resources import res res.initialize() pygame.scrap.init() # check for client updates import update as appUpdate try: appUpdate.checkForUpdate() except SystemExit, e: raise e except: log.warning('OSCI', 'Update failed.') # load resources res.loadResources() # client import client, handler from igeclient.IClient import IClientException client.initialize(gdata.config.game.server, handler) # display login