This commit is contained in:
fezster 2025-04-21 15:09:11 +02:00 committed by GitHub
commit 0f10e13dd9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 4 deletions

View file

@ -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")

View file

@ -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)