Merge pull request #563 from jessbo/fix-557

Fixes #557 - Add missing "PlaySessionId"
This commit is contained in:
mcarlton00 2021-09-04 21:08:03 -04:00 committed by GitHub
commit 0fb103852a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -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):

View File

@ -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/")