mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 10:16:11 +00:00
Fix subtitles not following server settings
This commit is contained in:
parent
702ce0beac
commit
a1851069ed
1 changed files with 42 additions and 44 deletions
|
@ -171,15 +171,14 @@ class Player(xbmc.Player):
|
|||
if audio and len(self.getAvailableAudioStreams()) > 1:
|
||||
self.setAudioStream(audio - 1)
|
||||
|
||||
if subtitle is None:
|
||||
if subtitle == -1 or subtitle is None:
|
||||
self.showSubtitles(False)
|
||||
|
||||
return
|
||||
|
||||
tracks = len(self.getAvailableAudioStreams())
|
||||
|
||||
if subtitle == -1 or subtitle is None:
|
||||
self.showSubtitles(False)
|
||||
|
||||
elif mapping:
|
||||
if mapping:
|
||||
for index in mapping:
|
||||
|
||||
if mapping[index] == subtitle:
|
||||
|
@ -390,7 +389,6 @@ class Player(xbmc.Player):
|
|||
for file in self.played:
|
||||
item = self.get_file_info(file)
|
||||
|
||||
if item:
|
||||
window('emby.skip.%s.bool' % item['Id'], True)
|
||||
|
||||
if window('emby.external.bool'):
|
||||
|
|
Loading…
Reference in a new issue