mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-10-09 02:12:04 +00:00
Merge affda25a2e
into 26fef79b82
This commit is contained in:
commit
807351c9e5
2 changed files with 4 additions and 3 deletions
|
@ -213,9 +213,10 @@ 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 (
|
||||||
"DefaultAudioStreamIndex"
|
source.get("DefaultAudioStreamIndex", 0) - 1
|
||||||
)
|
)
|
||||||
|
|
||||||
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