Class must only be initiated and used once
Hence no borg necessary
This commit is contained in:
parent
208997b167
commit
2a6d8757e6
1 changed files with 0 additions and 5 deletions
|
@ -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.")
|
||||||
|
|
Loading…
Reference in a new issue