Beta Titan skin version 3.7.x (Kodi 17 Krypton)
(2017-01-24, 06:13)oattes Wrote: Things are back to the 'occasional' miss. You mentioned that you had put a little delay in the widget refresh. If you let me know where that is implemented, perhaps I can play with it a little bit to see if I can find out the behaviour of the race condition -- which is, I am guessing, between your 'monitor' code and the time when the widget is refreshed, with the latter needing to be *after* the former completes.

The widget refresh is triggered by the kodimonitor code so it can either be one of these causes:
1) the event is not fired that there was a change in db or media stopped
2) when the event is fired, the db has not yet saved the new value

The code is now changed so it refreshes in any of these conditions:
- media playback stopped
- item changed in db (e.g. watchstate toggled)
- kodi db updated (e.g. library scan)

Are you sure you updated to the latest bits ? script.skin.helper.widgets should be at version 1.0.17

If you want to test with another delay (but that shouldn't be needed as the event is fired twice in a row):

script.skin.helper.widgets --> kodi_monitor.py --> add a delay after line 68:
xbmc.sleep(1000) for example sets a 1 second delay.
Reply


Messages In This Thread
kodi - by spook61 - 2016-06-21, 21:29
RE: Titan skin version 3.7.x (Kodi 17 Krypton) - by User 224999 - 2017-01-24, 23:31
Extended Info "Manage" choices - by Hardax - 2017-02-11, 19:32
Problem with Homescreen - by Blackkatt - 2017-02-26, 17:30
Fixed Focus in Showcase view? - by spinecho - 2017-03-16, 18:52
Hide Top 250 if Zero - by 214b1 - 2017-03-21, 00:50
PVR HELP!! - by tuppaacc - 2017-03-28, 12:18
TV Show Sub-menus - by niksimpson - 2017-04-12, 22:16
Emby Smart Short cut - by t123thomas - 2017-09-06, 18:06
WIDGET BUG REPORT - by User 206796 - 2018-01-04, 04:15
Everything is working fine! - by nexus7 - 2018-04-04, 20:19
Logout Mark Read Team Forum Stats Members Help
Titan skin version 3.7.x (Kodi 17 Krypton)6