Class must only be initiated and used once

Hence no borg necessary
This commit is contained in:
croneter 2017-12-07 17:15:54 +01:00
parent 208997b167
commit 2a6d8757e6

View file

@ -22,15 +22,10 @@ log = logging.getLogger("PLEX."+__name__)
class Player(xbmc.Player): class Player(xbmc.Player):
# Borg - multiple instances, shared state
_shared_state = {}
played_info = {}
playStats = {} playStats = {}
currentFile = None currentFile = None
def __init__(self): def __init__(self):
self.__dict__ = self._shared_state
self.doUtils = downloadutils.DownloadUtils().downloadUrl self.doUtils = downloadutils.DownloadUtils().downloadUrl
xbmc.Player.__init__(self) xbmc.Player.__init__(self)
log.info("Started playback monitor.") log.info("Started playback monitor.")