mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 18:26:15 +00:00
Add disable subs command
This commit is contained in:
parent
634409c528
commit
b8327cdf19
1 changed files with 5 additions and 2 deletions
|
@ -201,9 +201,12 @@ class WebSocketClient(threading.Thread):
|
|||
elif command == 'SetSubtitleStreamIndex':
|
||||
emby_index = int(arguments['Index'])
|
||||
current_file = player.getPlayingFile()
|
||||
|
||||
mapping = window('emby_%s.indexMapping' % current_file)
|
||||
if mapping:
|
||||
|
||||
if emby_index == -1:
|
||||
player.showSubtitles(False)
|
||||
|
||||
elif mapping:
|
||||
external_index = json.loads(mapping)
|
||||
# If there's external subtitles added via playbackutils
|
||||
for index in external_index:
|
||||
|
|
Loading…
Reference in a new issue