mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 12:16:12 +00:00
Ensure previous playback terminated
This commit is contained in:
parent
23686f975f
commit
299e8d3e83
1 changed files with 2 additions and 4 deletions
|
@ -22,14 +22,10 @@ LOG = logging.getLogger("EMBY."+__name__)
|
||||||
|
|
||||||
class Player(xbmc.Player):
|
class Player(xbmc.Player):
|
||||||
|
|
||||||
# Borg - multiple instances, shared state
|
|
||||||
_shared_state = {}
|
|
||||||
played = {}
|
played = {}
|
||||||
up_next = False
|
up_next = False
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
|
||||||
self.__dict__ = self._shared_state
|
|
||||||
xbmc.Player.__init__(self)
|
xbmc.Player.__init__(self)
|
||||||
|
|
||||||
@silent_catch()
|
@silent_catch()
|
||||||
|
@ -47,7 +43,9 @@ class Player(xbmc.Player):
|
||||||
|
|
||||||
''' We may need to wait for info to be set in kodi monitor.
|
''' We may need to wait for info to be set in kodi monitor.
|
||||||
Accounts for scenario where Kodi starts playback and exits immediately.
|
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
|
self.up_next = False
|
||||||
count = 0
|
count = 0
|
||||||
monitor = xbmc.Monitor()
|
monitor = xbmc.Monitor()
|
||||||
|
|
Loading…
Reference in a new issue