Fix PMS not being informed of playback stop
This commit is contained in:
parent
33fe7604e3
commit
55791659a9
1 changed files with 2 additions and 2 deletions
|
@ -537,6 +537,7 @@ class Player(xbmc.Player):
|
||||||
url = "{server}/emby/Items/%s?format=json" % itemid
|
url = "{server}/emby/Items/%s?format=json" % itemid
|
||||||
log("Deleting request: %s" % itemid, 1)
|
log("Deleting request: %s" % itemid, 1)
|
||||||
doUtils(url, type="DELETE")
|
doUtils(url, type="DELETE")
|
||||||
|
self.stopPlayback(data)
|
||||||
|
|
||||||
# Clean the WINDOW properties
|
# Clean the WINDOW properties
|
||||||
for filename in self.played_info:
|
for filename in self.played_info:
|
||||||
|
@ -552,7 +553,6 @@ class Player(xbmc.Player):
|
||||||
)
|
)
|
||||||
for item in cleanup:
|
for item in cleanup:
|
||||||
utils.window(item, clear=True)
|
utils.window(item, clear=True)
|
||||||
self.stopPlayback(data)
|
|
||||||
|
|
||||||
# Stop transcoding
|
# Stop transcoding
|
||||||
if playMethod == "Transcode":
|
if playMethod == "Transcode":
|
||||||
|
@ -564,7 +564,7 @@ class Player(xbmc.Player):
|
||||||
self.played_info.clear()
|
self.played_info.clear()
|
||||||
|
|
||||||
def stopPlayback(self, data):
|
def stopPlayback(self, data):
|
||||||
self.logMsg("stopPlayback called", 2)
|
self.logMsg("stopPlayback called", 1)
|
||||||
|
|
||||||
itemId = data['item_id']
|
itemId = data['item_id']
|
||||||
playTime = data['currentPosition']
|
playTime = data['currentPosition']
|
||||||
|
|
Loading…
Reference in a new issue