fix(player): re-detect audio and subs (#1115)

* fix(player): re-detect audio and subs

In the event that another addon (or even the user) sets the subtitles or
the audio before this addon does, such a change is not detected
correctly.

This PR fixes that by reloading that information from Kodi before
calling `set_audio_subs`

* fix: build

* Revert "fix: build"

This reverts commit 665037ab6c.
This commit is contained in:
Rijul 2026-03-26 04:00:25 +05:30 committed by GitHub
commit fa0ccfd8f6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -103,6 +103,8 @@ class Player(xbmc.Player):
window("jellyfin_play.json", items)
self.set_item(current_file, item)
# Detect current audio/subtitle state from Kodi player
self.detect_audio_subs(item)
data = {
"QueueableMediaTypes": "Video,Audio",
"CanSeek": True,