Complete album track list on home screen - best way?
#16
Yeah, widget refreshing is a pain. There are some options though - the following works for any dynamic list content (not just skin helper widgets)
See:
http://forum.kodi.tv/showthread.php?tid=...pid2284606
http://forum.kodi.tv/showthread.php?tid=...pid2279905


The following works to refresh every time you enter the home screen:

Code:
<content target="music">playlistmusic://?widgetreload=$INFO[Window(Home).Property(WidgetRefresh)]</content>

And then in your home.xml have the following onload conditions:
Code:
<onload condition="!Integer.IsEqual(Window(Home).Property(WidgetRefresh),1)">SetProperty(WidgetRefresh,1,Home)</onload>
<onload condition="Integer.IsEqual(Window(Home).Property(WidgetRefresh),1)">SetProperty(WidgetRefresh,2,Home)</onload>

Basically the ?widgetreload part forces a refresh when the window property changes because the content now has a different path. So if we just switch the window property onload then every entry into that screen will reload the widget.

Other option is to use two looping silent AlarmClocks at alternate intervals that switch the property
Arctic Fuse - Alpha now available. Support me on Ko-fi.
Reply
#17
Python daemon. As you already have one running seems a shame to waste it... Wink
Reply
#18
Cheers, jurialmunkey, it works.

One last thing. Is there any way to have this widget (which is a wraplist in this case) focus on the currently playing track every time it's opened? I tried using

Code:
SetFocus(6020,$INFO[MusicPlayer.PlaylistPosition])

...and it worked once, but then seemed to jump to offset positions which were all wrong. Also, MusicPlayer.PlaylistPosition doesn't seem to update if you select a new track via the widget.
www: deadendthrills.com
follow on twitter for updates, etc: @deadendthrills
Reply

Logout Mark Read Team Forum Stats Members Help
Complete album track list on home screen - best way?0