From 9ed7128ea225b4e739e6434665f58e6fb4c96a7f Mon Sep 17 00:00:00 2001 From: croneter Date: Thu, 25 Nov 2021 08:34:23 +0100 Subject: [PATCH] Add warning --- resources/lib/playlist_func.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/resources/lib/playlist_func.py b/resources/lib/playlist_func.py index ab4ac20b..3566ffdf 100644 --- a/resources/lib/playlist_func.py +++ b/resources/lib/playlist_func.py @@ -246,9 +246,13 @@ class PlaylistItem(object): def init_streams(self): """ Initializes all streams after Kodi has started playing this video + WARNING: KODI TAKES FOREVER TO INITIALIZE STREAMS AFTER PLAYBACK + STARTUP. YOU WONT GET THE CORRECT NUMBER OFAUDIO AND SUB STREAMS RIGHT + AFTER STARTUP. Seems like you need to wait a couple of seconds """ if not app.PLAYSTATE.item == self: # Already stopped playback or skipped to the next one + LOG.warn('Skipping init_streams!') return self.init_kodi_streams() self.switch_to_plex_stream('video')