mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Fix audio/sub change
Only for addon playback
This commit is contained in:
parent
3dc72287b3
commit
0926c0b5b4
2 changed files with 3 additions and 1 deletions
|
@ -38,6 +38,7 @@ def set_properties(item, method, server_id=None):
|
|||
'Id': item['Id'],
|
||||
'Path': info['Path'],
|
||||
'PlayMethod': method,
|
||||
'PlayOption': 'Addon' if info.get('PlaySessionId') else 'Native',
|
||||
'MediaSourceId': info.get('MediaSourceId', item['Id']),
|
||||
'Runtime': item.get('RunTimeTicks'),
|
||||
'PlaySessionId': info.get('PlaySessionId', str(uuid4()).replace("-", "")),
|
||||
|
|
|
@ -118,7 +118,8 @@ class Player(xbmc.Player):
|
|||
if monitor.waitForAbort(2):
|
||||
return
|
||||
|
||||
self.set_audio_subs(item['AudioStreamIndex'], item['SubtitleStreamIndex'])
|
||||
if item['PlayOption'] == 'Addon':
|
||||
self.set_audio_subs(item['AudioStreamIndex'], item['SubtitleStreamIndex'])
|
||||
|
||||
def set_item(self, file, item):
|
||||
|
||||
|
|
Loading…
Reference in a new issue