def __init__(self): self.config = xbmal.XML() self.server = xbmal.server() self.output = xbmal.output()
def __init__(self): self.config = xbmal.XML() self.mal = xbmal.MAL() self.server = xbmal.server() self.output = xbmal.output() self.a = self.mal.a
self.wasVideo = False if self.isPlayingVideo(): self.wasVideo = True #class XBMCMonitor( xbmc.Monitor ): # def __init__(self, *args): # pass # def onDatabaseUpdated(self, database): # xbmc.log("### [%s] - %s" %(__scriptname__,"Database Updated, Updating..."), level=xbmc.LOGNOTICE) # mal = MAL() # mal.fullUpdate(__configFile__) #Entry point player = XBMCPlayer() #monitor = XBMCMonitor() mal = MAL() o = xbmal.output() if (len(sys.argv) > 1): callmal = xbmal.MAL(True) else: callmal = xbmal.MAL(False) a = callmal.a if (a == -1 or a == False): sys.exit(0) else: while not xbmc.abortRequested: xbmc.sleep(100) sys.exit(0)
def onPlayBackResumed( self ): self.wasVideo = False if self.isPlayingVideo(): self.wasVideo = True #class XBMCMonitor( xbmc.Monitor ): # def __init__(self, *args): # pass # def onDatabaseUpdated(self, database): # xbmc.log("### [%s] - %s" %(__scriptname__,"Database Updated, Updating..."), level=xbmc.LOGNOTICE) # mal = MAL() # mal.fullUpdate(__configFile__) #Entry point player = XBMCPlayer() #monitor = XBMCMonitor() mal = MAL() o = xbmal.output() if (len(sys.argv) > 1): callmal = xbmal.MAL(True) else: callmal = xbmal.MAL(False) a = callmal.a if (a == -1 or a == False): sys.exit(0) else: while not xbmc.abortRequested: xbmc.sleep(100) sys.exit(0)