Ejemplo n.º 1
0
 def __init__(self):
     self.config = xbmal.XML()
     self.server = xbmal.server()
     self.output = xbmal.output()
Ejemplo n.º 2
0
	def __init__(self):
		self.config = xbmal.XML()
		self.mal = xbmal.MAL()
		self.server = xbmal.server()
		self.output = xbmal.output()
		self.a = self.mal.a
Ejemplo n.º 3
0
        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)
Ejemplo n.º 4
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)