mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Merge pull request #563 from jessbo/fix-557
Fixes #557 - Add missing "PlaySessionId"
This commit is contained in:
commit
0fb103852a
2 changed files with 4 additions and 3 deletions
|
@ -356,9 +356,10 @@ class API(object):
|
||||||
'LiveStreamId': live_id
|
'LiveStreamId': live_id
|
||||||
})
|
})
|
||||||
|
|
||||||
def close_transcode(self, device_id):
|
def close_transcode(self, device_id, play_id):
|
||||||
return self._delete("Videos/ActiveEncodings", params={
|
return self._delete("Videos/ActiveEncodings", params={
|
||||||
'DeviceId': device_id
|
'DeviceId': device_id,
|
||||||
|
'PlaySessionId': play_id
|
||||||
})
|
})
|
||||||
|
|
||||||
def get_default_headers(self):
|
def get_default_headers(self):
|
||||||
|
|
|
@ -418,7 +418,7 @@ class Player(xbmc.Player):
|
||||||
elif item['PlayMethod'] == 'Transcode':
|
elif item['PlayMethod'] == 'Transcode':
|
||||||
|
|
||||||
LOG.info("<[ transcode/%s ]", item['Id'])
|
LOG.info("<[ transcode/%s ]", item['Id'])
|
||||||
item['Server'].jellyfin.close_transcode(item['DeviceId'])
|
item['Server'].jellyfin.close_transcode(item['DeviceId'], item['PlaySessionId'])
|
||||||
|
|
||||||
path = xbmc.translatePath("special://profile/addon_data/plugin.video.jellyfin/temp/")
|
path = xbmc.translatePath("special://profile/addon_data/plugin.video.jellyfin/temp/")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue