mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2026-04-27 14:00:34 +00:00
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:
parent
ff79f67f0b
commit
fa0ccfd8f6
1 changed files with 2 additions and 0 deletions
|
|
@ -103,6 +103,8 @@ class Player(xbmc.Player):
|
||||||
window("jellyfin_play.json", items)
|
window("jellyfin_play.json", items)
|
||||||
|
|
||||||
self.set_item(current_file, item)
|
self.set_item(current_file, item)
|
||||||
|
# Detect current audio/subtitle state from Kodi player
|
||||||
|
self.detect_audio_subs(item)
|
||||||
data = {
|
data = {
|
||||||
"QueueableMediaTypes": "Video,Audio",
|
"QueueableMediaTypes": "Video,Audio",
|
||||||
"CanSeek": True,
|
"CanSeek": True,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue