From dfa1b4beaad4c67c238dbf63aa61569e9a607f3a Mon Sep 17 00:00:00 2001 From: croneter Date: Tue, 2 Nov 2021 19:48:08 +0100 Subject: [PATCH] Fix subtitle streams missmatch between Kodi and Plex --- resources/lib/kodimonitor.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/resources/lib/kodimonitor.py b/resources/lib/kodimonitor.py index 3830e8d8..0d3bbe5f 100644 --- a/resources/lib/kodimonitor.py +++ b/resources/lib/kodimonitor.py @@ -367,6 +367,11 @@ class KodiMonitor(xbmc.Monitor): # We need to switch to the Plex streams ONCE upon playback start if playerid == v.KODI_VIDEO_PLAYER_ID: + # The Kodi player takes forever to initialize all streams + # Especially subtitles, apparently. No way to tell when Kodi + # is done :-( + if app.APP.monitor.waitForAbort(5): + return item.init_kodi_streams() item.switch_to_plex_stream('video') if utils.settings('audioStreamPick') == '0':