Release Execute user tasks for Kodi events (callbacks ver2) - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27) +---- Forum: Service Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=152) +---- Thread: Release Execute user tasks for Kodi events (callbacks ver2) (/showthread.php?tid=256170) |
RE: Execute user tasks for Kodi events (callbacks ver2) - KenV99 - 2016-05-18 I can't recreate, but I think what might be happening is that kodi is quitting before the task gets executed. This can happen because of the threading model. You can try decreasing the task frequency under the general settings. if that doesn't work, let me know and I'll see if lengthening the join timeout for the dispatcher thread helps, however, with a task frequency of 100ms and the current timeout of 500ms, there really shouldn't be any reason the shutdown message doesn't get taken out of the queue and processed. If it's neither of those then I'm not quite sure why it is only intermittently working for you. These intermittent bugs in a threaded script can be difficult to sort out because they are often dependent on the processing state of external programs. RE: Execute user tasks for Kodi events (callbacks ver2) - subzero79 - 2016-05-19 (2016-04-23, 15:16)KenV99 Wrote: Good news!!! Congratulations, thanks again for your time RE: Execute user tasks for Kodi events (callbacks ver2) - moosen - 2016-05-23 Dear Ken, first of all thank you for creating this addon! There is a minor issue if a audio-file without mp3-tag is started. (Event: onPlayback started) Code: 14:25:35 T:7112 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-- FYI: With "onPlayback resume" there is no error - it works fine! I've read your howto and I know that new events are very unlikely. Never the less I just want request "onVolumeChanged" to the event-list, if its not a big deal for you, Thank you! RE: Execute user tasks for Kodi events (callbacks ver2) - rabillou - 2016-05-23 Hello sorry for my English I find really extra addon, but crash with the accent (é, è, à , ...) would it be possible to fix that ? Sorry to be French /AUFS/Vidéos/Films/2012.mkv Quote:10:59:15 T:140625028929280 NOTICE: $$$ [kodi.callbacks] - Task starting for onPlayBackStarted RE: Execute user tasks for Kodi events (callbacks ver2) - KenV99 - 2016-05-25 (2016-05-23, 15:53)moosen Wrote: Dear Ken, Thanks for the feedback. I'll provide a fix for that shortly on Github and post back. Will be a little while before it's available via the repo. RE: Execute user tasks for Kodi events (callbacks ver2) - KenV99 - 2016-05-25 (2016-05-23, 19:04)rabillou Wrote: Hello Thanks for letting me know. This may take a little while to fully track down. These unicode errors are notoriously bad. Don't apologize for being French I have visited several times (Strasbourg, Colmar, Paris, Lille, Lyon) and I love your country. Everyone has always been so nice to me and I have made many friends. Marseille is next... RE: Execute user tasks for Kodi events (callbacks ver2) - KenV99 - 2016-05-26 I pushed a new version to Github master. With this update: Better po file formatting Fixes bug with unicode strings Fixes bug with mp3 files with no tags Improves onShutdown task Please try it out if possible and let me know before I request it gets pulled into the repo. Thx RE: Execute user tasks for Kodi events (callbacks ver2) - philstowell - 2016-05-28 Hi, Firstly thanks for the great addon I seem to be encountering an error on startup: Code: 13:55:31 T:4640 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-- My setting are (maybe i'm doing something wrong? Code: 14:02:59 T:10688 NOTICE: $$$ [kodi.callbacks] - { 'Events': { 'E1': { 'task': 'T1', I can't seem to get this version working with window open detection, this works fine on the old v2 version. Thanks, RE: Execute user tasks for Kodi events (callbacks ver2) - KenV99 - 2016-05-29 I pushed a fix for the windowid error to github master. Please download, give it a try and let me know. RE: Execute user tasks for Kodi events (callbacks ver2) - KenV99 - 2016-05-30 I have to apologize - I realized I've been pushing fixes to the wrong archive. All fixes are now in both the master and non-repo branches on Github. Please give them a try and let me know. Changelog: Better po file formatting Fixes bug with unicode strings Fixes bug with mp3 files with no tags Fixes bug in reading windowsids from settings Improves onShutdown task RE: Execute user tasks for Kodi events (callbacks ver2) - delphiactual - 2016-06-04 @KenV99, is it possible to have a task that runs as plugin:// ? Edit: The answer is yes Kodi builtin RunPlugin(plugin://......) RE: Execute user tasks for Kodi events (callbacks ver2) - KenV99 - 2016-06-05 (2016-06-04, 20:50)delphiactual Wrote: @KenV99, is it possible to have a task that runs as plugin:// ? Yep - you got it RE: Execute user tasks for Kodi events (callbacks ver2) - thildemar - 2016-06-10 Hey Ken, Getting a startup error on one of my boxes and addon seems to only work some of the time =/ Code: 11:18:13 T:15172 NOTICE: $$$ [kodi.callbacks] - Staring kodi.callbacks ver: 0.9.9 (build 1008) Any idea? Is this something fixed in the github version but not on repo? RE: Execute user tasks for Kodi events (callbacks ver2) - KenV99 - 2016-06-10 I need to see the entire log. See: http://kodi.wiki/view/Add-on:Kodi_Callbacks#FAQs RE: Execute user tasks for Kodi events (callbacks ver2) - rroos - 2016-06-16 So I've wrote a Python script that can monitor network usage, and I want to execute the script when the 'shutdown' event kicks in. The idea is that the script determines if there is network activity and if so, prevent the shutdown from taking place. But I'm having problems getting that to work. I'm pretty confident about the script, and I'm presuming it gets executed, but I'm also presuming that nothing is preventing Kodi from executing the actual Suspend action while the script is being executed: the script probably doesn't replace the Kodi action. Are there ways in the plugin to prevent Kodi from executing the actual event? |