Ensure previous playback terminated

This commit is contained in:
angelblue05 2019-01-10 17:46:05 -06:00
parent 23686f975f
commit 299e8d3e83

View file

@ -22,14 +22,10 @@ LOG = logging.getLogger("EMBY."+__name__)
class Player(xbmc.Player):
# Borg - multiple instances, shared state
_shared_state = {}
played = {}
up_next = False
def __init__(self):
self.__dict__ = self._shared_state
xbmc.Player.__init__(self)
@silent_catch()
@ -47,7 +43,9 @@ class Player(xbmc.Player):
''' We may need to wait for info to be set in kodi monitor.
Accounts for scenario where Kodi starts playback and exits immediately.
First, ensure previous playback terminated correctly in Emby.
'''
self.stop_playback()
self.up_next = False
count = 0
monitor = xbmc.Monitor()