• 1
  • 17
  • 18
  • 19(current)
  • 20
  • 21
  • 22
Release Execute user tasks for Kodi events (callbacks ver2)
Hello,

I'm using the Callbacks addon (script.service.kodi.callbacks) and since I updated to v18 it spams the log file with warnings. The addon seems to be abandoned by the original author, therefore I'd like to fix this behavior as it's annoying when searching for useful information in the log. The settings.xml can be found here.

As far is I understand the settings file and syntax it's looks correct to me, but nevertheless it produces about 32 times the following warnings:
Code:

2019-12-07 22:34:20.637 T:139671136864000 WARNING: CAddonSettings[script.service.kodi.callbacks]: cannot reference separator setting in old setting condition "eq(-14,5)" for "T1.scriptfile"
2019-12-07 22:34:20.637 T:139671136864000 WARNING: CAddonSettings[script.service.kodi.callbacks]: failed to parse visible condition "eq(-14,5)" of old setting definition for "T1.scriptfile"
2019-12-07 22:34:20.637 T:139671136864000 WARNING: CAddonSettings[script.service.kodi.callbacks]: cannot reference separator setting in old setting condition "eq(-14,5)" for "T2.scriptfile"
2019-12-07 22:34:20.637 T:139671136864000 WARNING: CAddonSettings[script.service.kodi.callbacks]: failed to parse visible condition "eq(-14,5)" of old setting definition for "T2.scriptfile"
2019-12-07 22:34:20.637 T:139671136864000 WARNING: CAddonSettings[script.service.kodi.callbacks]: cannot reference separator setting in old setting condition "eq(-14,5)" for "T3.scriptfile"
2019-12-07 22:34:20.637 T:139671136864000 WARNING: CAddonSettings[script.service.kodi.callbacks]: failed to parse visible condition "eq(-14,5)" of old setting definition for "T3.scriptfile"
2019-12-07 22:34:20.637 T:139671136864000 WARNING: CAddonSettings[script.service.kodi.callbacks]: cannot reference separator setting in old setting condition "eq(-14,5)" for "T4.scriptfile"
2019-12-07 22:34:20.637 T:139671136864000 WARNING: CAddonSettings[script.service.kodi.callbacks]: failed to parse visible condition "eq(-14,5)" of old setting definition for "T4.scriptfile"
2019-12-07 22:34:20.638 T:139671136864000 WARNING: CAddonSettings[script.service.kodi.callbacks]: cannot reference separator setting in old setting condition "eq(-14,5)" for "T5.scriptfile"
2019-12-07 22:34:20.638 T:139671136864000 WARNING: CAddonSettings[script.service.kodi.callbacks]: failed to parse visible condition "eq(-14,5)" of old setting definition for "T5.scriptfile"
2019-12-07 22:34:20.638 T:139671136864000 WARNING: CAddonSettings[script.service.kodi.callbacks]: cannot reference separator setting in old setting condition "eq(-14,5)" for "T6.scriptfile"
2019-12-07 22:34:20.638 T:139671136864000 WARNING: CAddonSettings[script.service.kodi.callbacks]: failed to parse visible condition "eq(-14,5)" of old setting definition for "T6.scriptfile"
2019-12-07 22:34:20.638 T:139671136864000 WARNING: CAddonSettings[script.service.kodi.callbacks]: cannot reference separator setting in old setting condition "eq(-14,5)" for "T7.scriptfile"
2019-12-07 22:34:20.638 T:139671136864000 WARNING: CAddonSettings[script.service.kodi.callbacks]: failed to parse visible condition "eq(-14,5)" of old setting definition for "T7.scriptfile"
2019-12-07 22:34:20.638 T:139671136864000 WARNING: CAddonSettings[script.service.kodi.callbacks]: cannot reference separator setting in old setting condition "eq(-14,5)" for "T8.scriptfile"
2019-12-07 22:34:20.638 T:139671136864000 WARNING: CAddonSettings[script.service.kodi.callbacks]: failed to parse visible condition "eq(-14,5)" of old setting definition for "T8.scriptfile"
2019-12-07 22:34:20.638 T:139671136864000 WARNING: CAddonSettings[script.service.kodi.callbacks]: cannot reference separator setting in old setting condition "eq(-14,5)" for "T9.scriptfile"
2019-12-07 22:34:20.638 T:139671136864000 WARNING: CAddonSettings[script.service.kodi.callbacks]: failed to parse visible condition "eq(-14,5)" of old setting definition for "T9.scriptfile"
2019-12-07 22:34:20.638 T:139671136864000 WARNING: CAddonSettings[script.service.kodi.callbacks]: cannot reference separator setting in old setting condition "eq(-14,5)" for "T10.scriptfile"
2019-12-07 22:34:20.638 T:139671136864000 WARNING: CAddonSettings[script.service.kodi.callbacks]: failed to parse visible condition "eq(-14,5)" of old setting definition for "T10.scriptfile"
2019-12-07 22:34:20.640 T:139671136864000 WARNING: CAddonSettings[script.service.kodi.callbacks]: cannot reference setting (relative index: -80; absolute index: -4) in another category in old setting condition "eq(-80,32241)" for "E1.matchIf"
2019-12-07 22:34:20.640 T:139671136864000 WARNING: CAddonSettings[script.service.kodi.callbacks]: failed to parse visible condition "eq(-80,32241)" of old setting definition for "E1.matchIf"
2019-12-07 22:34:20.640 T:139671136864000 WARNING: CAddonSettings[script.service.kodi.callbacks]: cannot reference setting (relative index: -81; absolute index: -4) in another category in old setting condition "eq(-81,32241)" for "E1.rejectIf"
2019-12-07 22:34:20.640 T:139671136864000 WARNING: CAddonSettings[script.service.kodi.callbacks]: failed to parse visible condition "eq(-81,32241)" of old setting definition for "E1.rejectIf"
2019-12-07 22:34:20.640 T:139671136864000 WARNING: CAddonSettings[script.service.kodi.callbacks]: cannot reference separator setting in old setting condition "eq(-80,32241)" for "E2.matchIf"
2019-12-07 22:34:20.640 T:139671136864000 WARNING: CAddonSettings[script.service.kodi.callbacks]: failed to parse visible condition "eq(-80,32241)" of old setting definition for "E2.matchIf"
2019-12-07 22:34:20.641 T:139671136864000 WARNING: CAddonSettings[script.service.kodi.callbacks]: cannot reference separator setting in old setting condition "eq(-81,32241)" for "E2.rejectIf"
2019-12-07 22:34:20.641 T:139671136864000 WARNING: CAddonSettings[script.service.kodi.callbacks]: failed to parse visible condition "eq(-81,32241)" of old setting definition for "E2.rejectIf"
2019-12-07 22:34:20.641 T:139671136864000 WARNING: CAddonSettings[script.service.kodi.callbacks]: cannot reference separator setting in old setting condition "eq(-80,32241)" for "E3.matchIf"
2019-12-07 22:34:20.641 T:139671136864000 WARNING: CAddonSettings[script.service.kodi.callbacks]: failed to parse visible condition "eq(-80,32241)" of old setting definition for "E3.matchIf"
2019-12-07 22:34:20.641 T:139671136864000 WARNING: CAddonSettings[script.service.kodi.callbacks]: cannot reference separator setting in old setting condition "eq(-81,32241)" for "E3.rejectIf"
2019-12-07 22:34:20.641 T:139671136864000 WARNING: CAddonSettings[script.service.kodi.callbacks]: failed to parse visible condition "eq(-81,32241)" of old setting definition for "E3.rejectIf"
2019-12-07 22:34:20.641 T:139671136864000 WARNING: CAddonSettings[script.service.kodi.callbacks]: cannot reference separator setting in old setting condition "eq(-80,32241)" for "E4.matchIf"
2019-12-07 22:34:20.641 T:139671136864000 WARNING: CAddonSettings[script.service.kodi.callbacks]: failed to parse visible condition "eq(-80,32241)" of old setting definition for "E4.matchIf"
2019-12-07 22:34:20.641 T:139671136864000 WARNING: CAddonSettings[script.service.kodi.callbacks]: cannot reference separator setting in old setting condition "eq(-81,32241)" for "E4.rejectIf"
2019-12-07 22:34:20.641 T:139671136864000 WARNING: CAddonSettings[script.service.kodi.callbacks]: failed to parse visible condition "eq(-81,32241)" of old setting definition for "E4.rejectIf"
2019-12-07 22:34:20.642 T:139671136864000 WARNING: CAddonSettings[script.service.kodi.callbacks]: cannot reference separator setting in old setting condition "eq(-80,32241)" for "E5.matchIf"
2019-12-07 22:34:20.642 T:139671136864000 WARNING: CAddonSettings[script.service.kodi.callbacks]: failed to parse visible condition "eq(-80,32241)" of old setting definition for "E5.matchIf"
2019-12-07 22:34:20.642 T:139671136864000 WARNING: CAddonSettings[script.service.kodi.callbacks]: cannot reference separator setting in old setting condition "eq(-81,32241)" for "E5.rejectIf"
2019-12-07 22:34:20.642 T:139671136864000 WARNING: CAddonSettings[script.service.kodi.callbacks]: failed to parse visible condition "eq(-81,32241)" of old setting definition for "E5.rejectIf"
2019-12-07 22:34:20.642 T:139671136864000 WARNING: CAddonSettings[script.service.kodi.callbacks]: cannot reference separator setting in old setting condition "eq(-80,32241)" for "E6.matchIf"
2019-12-07 22:34:20.642 T:139671136864000 WARNING: CAddonSettings[script.service.kodi.callbacks]: failed to parse visible condition "eq(-80,32241)" of old setting definition for "E6.matchIf"
2019-12-07 22:34:20.642 T:139671136864000 WARNING: CAddonSettings[script.service.kodi.callbacks]: cannot reference separator setting in old setting condition "eq(-81,32241)" for "E6.rejectIf"
2019-12-07 22:34:20.642 T:139671136864000 WARNING: CAddonSettings[script.service.kodi.callbacks]: failed to parse visible condition "eq(-81,32241)" of old setting definition for "E6.rejectIf"
2019-12-07 22:34:20.643 T:139671136864000 WARNING: CAddonSettings[script.service.kodi.callbacks]: cannot reference separator setting in old setting condition "eq(-80,32241)" for "E7.matchIf"
2019-12-07 22:34:20.643 T:139671136864000 WARNING: CAddonSettings[script.service.kodi.callbacks]: failed to parse visible condition "eq(-80,32241)" of old setting definition for "E7.matchIf"
2019-12-07 22:34:20.643 T:139671136864000 WARNING: CAddonSettings[script.service.kodi.callbacks]: cannot reference separator setting in old setting condition "eq(-81,32241)" for "E7.rejectIf"
2019-12-07 22:34:20.643 T:139671136864000 WARNING: CAddonSettings[script.service.kodi.callbacks]: failed to parse visible condition "eq(-81,32241)" of old setting definition for "E7.rejectIf"
2019-12-07 22:34:20.643 T:139671136864000 WARNING: CAddonSettings[script.service.kodi.callbacks]: cannot reference separator setting in old setting condition "eq(-80,32241)" for "E8.matchIf"
2019-12-07 22:34:20.643 T:139671136864000 WARNING: CAddonSettings[script.service.kodi.callbacks]: failed to parse visible condition "eq(-80,32241)" of old setting definition for "E8.matchIf"
2019-12-07 22:34:20.643 T:139671136864000 WARNING: CAddonSettings[script.service.kodi.callbacks]: cannot reference separator setting in old setting condition "eq(-81,32241)" for "E8.rejectIf"
2019-12-07 22:34:20.644 T:139671136864000 WARNING: CAddonSettings[script.service.kodi.callbacks]: failed to parse visible condition "eq(-81,32241)" of old setting definition for "E8.rejectIf"
2019-12-07 22:34:20.644 T:139671136864000 WARNING: CAddonSettings[script.service.kodi.callbacks]: cannot reference separator setting in old setting condition "eq(-80,32241)" for "E9.matchIf"
2019-12-07 22:34:20.644 T:139671136864000 WARNING: CAddonSettings[script.service.kodi.callbacks]: failed to parse visible condition "eq(-80,32241)" of old setting definition for "E9.matchIf"
2019-12-07 22:34:20.644 T:139671136864000 WARNING: CAddonSettings[script.service.kodi.callbacks]: cannot reference separator setting in old setting condition "eq(-81,32241)" for "E9.rejectIf"
2019-12-07 22:34:20.644 T:139671136864000 WARNING: CAddonSettings[script.service.kodi.callbacks]: failed to parse visible condition "eq(-81,32241)" of old setting definition for "E9.rejectIf"
2019-12-07 22:34:20.645 T:139671136864000 WARNING: CAddonSettings[script.service.kodi.callbacks]: cannot reference separator setting in old setting condition "eq(-80,32241)" for "E10.matchIf"
2019-12-07 22:34:20.645 T:139671136864000 WARNING: CAddonSettings[script.service.kodi.callbacks]: failed to parse visible condition "eq(-80,32241)" of old setting definition for "E10.matchIf"
2019-12-07 22:34:20.645 T:139671136864000 WARNING: CAddonSettings[script.service.kodi.callbacks]: cannot reference separator setting in old setting condition "eq(-81,32241)" for "E10.rejectIf"
2019-12-07 22:34:20.645 T:139671136864000 WARNING: CAddonSettings[script.service.kodi.callbacks]: failed to parse visible condition "eq(-81,32241)" of old setting definition for "E10.rejectIf"

Has someone an idea what's happening and how I could solve it?
Reply
There is already a forum thread for this addon: https://forum.kodi.tv/showthread.php?tid=256170

Also, please use a pastebin website for long(er) log files. Pasting 32 nearly identical lines is a bit over the top.
Reply
threads merged.

the warnings in the log are likely due to the fact this addon has 1000+ settings in a single setting category.
in kodi leia, the max limit is 80 settings per category.
some more info here: https://github.com/xbmc/xbmc/pull/14154
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
(2019-06-17, 23:07)koekiemonster Wrote: Hi all, I'm crudely jumping in here without reading a lot of the thread history. I just started looking into this plugin and also hit the issue that "on Playback started" does not function properly on Leia.
I managed to fix it by changing the "except KeyError:" in the getInfo routine on line 269 in player.py to "except:". I have not done any other testing, so this might break a whole bunch of other things, but it seems to fix the "on Playback started" event.

For people that speak json rpc and want to dig into this a bit more: The call on line 261:
player = json.loads(xbmc.executeJSONRPC('{"jsonrpc": "2.0", "method": "Player.GetActivePlayers", "id": 1}'))
seems to respond the following when starting a new video:
{u'jsonrpc': u'2.0', u'id': 1, u'result': []}
This causes an "IndexError: list index out of range" in line 267. 
If a video was playing before and it got interrupted because you started another one, the response is:
{u'jsonrpc': u'2.0', u'id': 1, u'result': [{u'playerid': 1, u'type': u'video', u'playertype': u'internal'}]}
which does not trigger any issues in line 267&268


Hey callbacks works again! Thank you!
Reply
Hello everyone, I don't understand well - can I execute the following command thru JSON-RPC:
Quote:http://myip/jsonrpc?request={"jsonrpc":"2.0","method":"JSONRPC.NotifyAll","params":{"sender":"mysender","message":"mymessage"},"id":1}
and then capture it with Kodi Callbacks addon with Event on JSON Notification?
Reply
Hello,

Is there an event that gets triggered when Kodi is resumed again after being suspended?
The reason that I ask is that my Kodi screensaver is still active after being resumed. and therefore on resume I would like to execute the buit-in function "ActivateWindow(home)" in order to deactivate the screensaver.
This addon might be a solution for my problem but I need to know which event I can use?

Thanks,
Jeroen
Reply
Hello folks,
is it possible to configure a task which triggers after constantly pausing a video for x minutes?

Best regards
Reply
Hello guys,
I get the following error when trying to execute a python script:
https://paste.kodi.tv/qosipifima.kodi

I use Kodi 18.6 "Leia" and I believe this has something to do with the OS which is Android on Fire TV Stick 4K.
Does anyone have any idea how can I resolve this?
Reply
I'm assuming this is no longer officially supported by the original creator.
Is there a similar product or anyone willing to pick it up?

It's a great facility to dim my lights on play, bring them up slightly on pause or back to 100% at stop.
Reply
Have tried to figure this out on my own but a bit complicated for me, so hoping for some help.

I've written a python script to calculate the aspect ratio of a file using pymediainfo. However, this is not available as a Kodi module, so while it's installed on my system it results in an error referencing this module in my script.

I took a look at this thread but since I'm not developing an add-on I'm not sure how to use pymediainfo. I tried just creating a folder for script.module.pymediainfo, including an addon.xml and structuring it similar to the other modules I saw but Kodi doesn't 'see' it.

https://forum.kodi.tv/showthread.php?tid=251555

How do I get Kodi to utilize pymediainfo without writing my own addon?
Reply
hello, i have been trying to make a bot for discord that will run on chronos docker. would it be possible to use jsonrpc to trigger that python and the python will take and post on my discord server?

i have a raspberry pi with libreelec so my goal is during playback, run a python that will send the title of what i am watching to my server that has a the chronos docker which contains a discord bot in python. that bot will read the incoming info and post it to my discord.
Reply
Callbacks was working great on my Shield, along with Smartthings, to trigger the lights in my Movie Room. All of a sudden, it stopped working. Anyone know why this happened?
Reply
i simply want to do this:

if "audiochannels" = 2 then copy config_2ch.txt to /myFOLDER
elseif "audiochannels" > 2 then copy config_mch.txt to /myFOLDER

the file overwrite shoult only apply if audio channels are changing and of cource once on kodi start

is this possible?

maybe be use of "Player.Process(AudioChannels)" ?
Reply
please someone help me Sad(
Reply
ok i have now a working python script i want to execute with callbacks.. but i cant find it on kodi matrix

my solution here: https://forum.kodi.tv/showthread.php?tid=353852&page=7  post#104
Reply
  • 1
  • 17
  • 18
  • 19(current)
  • 20
  • 21
  • 22

Logout Mark Read Team Forum Stats Members Help
Execute user tasks for Kodi events (callbacks ver2)3