2016-11-25, 10:03
Hi Marcel,
A small problem for the radio stream (only stream - library is ok).
Property SkinHelper.Player.Art.XXXXXX (all Listitem Properties Music items) appear and disappear every 5s (approximately 5 seconds).
In version 1.0.120 was correctly
JB
PS. Small tests.
Maybe this will help:
set_music_properties function overrides variable self.last_title
I added a new variable self.last_title_stream for testing and working properly
A small problem for the radio stream (only stream - library is ok).
Property SkinHelper.Player.Art.XXXXXX (all Listitem Properties Music items) appear and disappear every 5s (approximately 5 seconds).
In version 1.0.120 was correctly
JB
PS. Small tests.
Maybe this will help:
set_music_properties function overrides variable self.last_title
I added a new variable self.last_title_stream for testing and working properly
PHP Code:
class KodiMonitor(xbmc.Monitor):
'''Monitor all events in Kodi'''
update_video_widgets_busy = False
update_music_widgets_busy = False
all_window_props = []
last_title = ""
last_title_stream = ""
PHP Code:
def monitor_radiostream(self):
'''
for radiostreams we are not notified when the track changes
so we have to monitor that ourself
'''
while not self.abortRequested() and xbmc.getCondVisibility("Player.HasAudio"):
#check details every 5 seconds
cur_title = xbmc.getInfoLabel("$INFO[MusicPlayer.Artist]-$INFO[MusicPlayer.Title]").decode('utf-8')
if cur_title != self.last_title_stream:
self.last_title_stream = cur_title
self.reset_win_props()
self.set_music_properties()
self.waitForAbort(5)