Add warning

This commit is contained in:
croneter 2021-11-25 08:34:23 +01:00
parent 20fe547d82
commit 9ed7128ea2

View file

@ -246,9 +246,13 @@ class PlaylistItem(object):
def init_streams(self): def init_streams(self):
""" """
Initializes all streams after Kodi has started playing this video 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: if not app.PLAYSTATE.item == self:
# Already stopped playback or skipped to the next one # Already stopped playback or skipped to the next one
LOG.warn('Skipping init_streams!')
return return
self.init_kodi_streams() self.init_kodi_streams()
self.switch_to_plex_stream('video') self.switch_to_plex_stream('video')