mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-05-16 14:25:09 +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 ]")
|
LOG.info("--[ transcode ]")
|
||||||
self.transcode(source, audio, subtitle)
|
self.transcode(source, audio, subtitle)
|
||||||
|
|
||||||
self.info["AudioStreamIndex"] = self.info.get("AudioStreamIndex") or source.get(
|
self.info["AudioStreamIndex"] = self.info.get("AudioStreamIndex") or (source.get("DefaultAudioStreamIndex") - 1)
|
||||||
"DefaultAudioStreamIndex"
|
|
||||||
)
|
|
||||||
self.info["SubtitleStreamIndex"] = self.info.get(
|
self.info["SubtitleStreamIndex"] = self.info.get(
|
||||||
"SubtitleStreamIndex"
|
"SubtitleStreamIndex"
|
||||||
) or source.get("DefaultSubtitleStreamIndex")
|
) or source.get("DefaultSubtitleStreamIndex")
|
||||||
|
|
|
@ -382,7 +382,7 @@ class Player(xbmc.Player):
|
||||||
"IsPaused": item["Paused"],
|
"IsPaused": item["Paused"],
|
||||||
"IsMuted": item["Muted"],
|
"IsMuted": item["Muted"],
|
||||||
"PlaySessionId": item["PlaySessionId"],
|
"PlaySessionId": item["PlaySessionId"],
|
||||||
"AudioStreamIndex": item["AudioStreamIndex"],
|
"AudioStreamIndex": (item["AudioStreamIndex"] + 1),
|
||||||
"SubtitleStreamIndex": item["SubtitleStreamIndex"],
|
"SubtitleStreamIndex": item["SubtitleStreamIndex"],
|
||||||
}
|
}
|
||||||
item["Server"].jellyfin.session_progress(data)
|
item["Server"].jellyfin.session_progress(data)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue