Exemple #1
0
	def onInit(self):
		xbmc.log(msg="[Match Center] Script started", level=xbmc.LOGDEBUG)
		if os.path.exists(ignored_league_list_file):
			self.ignored_leagues = eval(ssutils.read_file(ignored_league_list_file))
		else:
			self.ignored_leagues = []
		xbmc.executebuiltin("ClearProperty(no-games,Home)")
		self.getControl(32540).setImage(os.path.join(addon_path,"resources","img","goal.png"))
		xbmc.executebuiltin("SetProperty(loading,1,home)")
		self.livescoresThread()
		xbmc.executebuiltin("ClearProperty(loading,Home)")
		i = 0
		while self.isRunning:
			if (float(i*200)/(livescores_update_time*60*1000)).is_integer() and ((i*200)/(3*60*1000)) != 0:
				self.livescoresThread()
			xbmc.sleep(200)
			i += 1
		xbmc.log(msg="[Match Center] Script stopped", level=xbmc.LOGDEBUG)
Exemple #2
0
 def onInit(self):
     xbmc.log(msg="[Match Center] Script started", level=xbmc.LOGDEBUG)
     if os.path.exists(ignored_league_list_file):
         self.ignored_leagues = eval(
             ssutils.read_file(ignored_league_list_file))
     else:
         self.ignored_leagues = []
     xbmc.executebuiltin("ClearProperty(no-games,Home)")
     self.getControl(32540).setImage(
         os.path.join(addon_path, "resources", "img", "goal.png"))
     xbmc.executebuiltin("SetProperty(loading,1,home)")
     self.livescoresThread()
     xbmc.executebuiltin("ClearProperty(loading,Home)")
     i = 0
     while self.isRunning:
         if (float(i * 200) /
             (livescores_update_time * 60 * 1000)).is_integer() and (
                 (i * 200) / (3 * 60 * 1000)) != 0:
             self.livescoresThread()
         xbmc.sleep(200)
         i += 1
     xbmc.log(msg="[Match Center] Script stopped", level=xbmc.LOGDEBUG)
Exemple #3
0
	def __init__( self, *args, **kwargs ):
		if os.path.exists(ignored_league_list_file):
			self.already_ignored = eval(ssutils.read_file(ignored_league_list_file))
		else:
			self.already_ignored = []
 def __init__(self, *args, **kwargs):
     if os.path.exists(ignored_league_list_file):
         self.already_ignored = eval(
             ssutils.read_file(ignored_league_list_file))
     else:
         self.already_ignored = []