Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Challenge...

If you have a question or need help, this is the place to be.
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Challenge...

Post by jonib »

shaggy79 wrote:I did not write the original code (I don't know how to :oops: ). So I have no idea what or how to do it :?:
So "eg.event.string" gives you the event string, the below code extracts anything after the second period:

Code: Select all

eg.event.string.split('.',2)[2]
If you change the "eg.event.payload[0]" part in your code to the below:

Code: Select all

cp.set(section, option, str(eg.event.string.split('.',2)[2]))
It should use the "Note" part of the event instead of the payload.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
shaggy79
Experienced User
Posts: 129
Joined: Sun Jul 13, 2014 4:57 pm

Re: Challenge...

Post by shaggy79 »

8) Jonib 8)
:D You sir are a gent. It works perfect thank you so so much. :D
:) :D :) :D :) :D :) :D :) :D :) :D :) :D :) :D :)
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Challenge...

Post by jonib »

shaggy79 wrote:8) Jonib 8)
:D You sir are a gent. It works perfect thank you so so much. :D
:) :D :) :D :) :D :) :D :) :D :) :D :) :D :) :D :)
Happy I could help.
Now I'm sure there is a law against that many smileys, but I'll let you off with a 8)

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
Post Reply