mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-05-07 09:58:47 +00:00
Fix default audio stream selection
Fix default audio stream selection
This commit is contained in:
parent
be4207bdd4
commit
db0e4e98dd
2 changed files with 2 additions and 4 deletions
|
@ -213,9 +213,7 @@ class PlayUtils(object):
|
|||
LOG.info("--[ transcode ]")
|
||||
self.transcode(source, audio, subtitle)
|
||||
|
||||
self.info["AudioStreamIndex"] = self.info.get("AudioStreamIndex") or source.get(
|
||||
"DefaultAudioStreamIndex"
|
||||
)
|
||||
self.info["AudioStreamIndex"] = self.info.get("AudioStreamIndex") or (source.get("DefaultAudioStreamIndex") - 1)
|
||||
self.info["SubtitleStreamIndex"] = self.info.get(
|
||||
"SubtitleStreamIndex"
|
||||
) or source.get("DefaultSubtitleStreamIndex")
|
||||
|
|
|
@ -382,7 +382,7 @@ class Player(xbmc.Player):
|
|||
"IsPaused": item["Paused"],
|
||||
"IsMuted": item["Muted"],
|
||||
"PlaySessionId": item["PlaySessionId"],
|
||||
"AudioStreamIndex": item["AudioStreamIndex"],
|
||||
"AudioStreamIndex": (item["AudioStreamIndex"] + 1),
|
||||
"SubtitleStreamIndex": item["SubtitleStreamIndex"],
|
||||
}
|
||||
item["Server"].jellyfin.session_progress(data)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue