Call xbmc __init__ methods

This commit is contained in:
tomkat83 2016-07-22 15:54:03 +02:00
parent 16dbc726f1
commit 5eac547633
2 changed files with 4 additions and 2 deletions

View file

@ -24,7 +24,7 @@ class KodiMonitor(xbmc.Monitor):
self.doUtils = downloadutils.DownloadUtils().downloadUrl self.doUtils = downloadutils.DownloadUtils().downloadUrl
self.xbmcplayer = xbmc.Player() self.xbmcplayer = xbmc.Player()
xbmc.Monitor.__init__(self)
self.logMsg("Kodi monitor started.", 1) self.logMsg("Kodi monitor started.", 1)
def onScanStarted(self, library): def onScanStarted(self, library):

View file

@ -36,7 +36,9 @@ class Player(xbmc.Player):
self.doUtils = downloadutils.DownloadUtils().downloadUrl self.doUtils = downloadutils.DownloadUtils().downloadUrl
self.xbmcplayer = xbmc.Player() self.xbmcplayer = xbmc.Player()
self.logMsg("Starting playback monitor.", 2) xbmc.Player.__init__(self)
self.logMsg("Started playback monitor.", 2)
def GetPlayStats(self): def GetPlayStats(self):
return self.playStats return self.playStats