mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-06-21 07:30:32 +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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue