Posts: 2,710
Joined: Feb 2009
Reputation:
12
ppic
Skilled Python Coder
Posts: 2,710
yes, but what di you need to get the port (we should continue this elsewhere)
Posts: 42
Joined: Sep 2011
Reputation:
0
Is there a way to run my script (with a param) when its settings are updated?
Posts: 812
Joined: Apr 2010
Reputation:
338
_BJ1
Posting Freak
Posts: 812
2012-03-28, 13:56
(This post was last modified: 2012-03-29, 21:03 by _BJ1.)
I have a problem with internationalization/localization. I need following:
i.e. english: Scan EPG-Data at xx:xx o'clock
german: Scanne EPG-Daten um xx:xx Uhr
I know, how to script in settings.xml the first label item and the options (value=xx:xx) but don't know how to implement "o'clock/Uhr" afterwards?
Posts: 812
Joined: Apr 2010
Reputation:
338
_BJ1
Posting Freak
Posts: 812
Thank you very much! Workaround #2 works like a charme for me.
_BJ1
Posts: 29
Joined: Sep 2013
Reputation:
0
Hello all,
I am trying to set a number of pages in an add-on, but have the following issues and need help.
In settings.xml I have
<setting id="page" type="enum" label="Choose number of pages" values="10|50|100" default="50" />
In defautlt.py I have
pages = mysettings.getSetting('page')
and use
for i in range(pages):
I got this error shown in log
Error Type: <type 'exceptions.TypeError'>
Error Contents: range() integer end argument expected, got str
Another issue is when I go into add-on settings and click on Defaults tab, the number does not go to 50 and does not change at all.
Thanks in advance.
Posts: 812
Joined: Apr 2010
Reputation:
338
_BJ1
Posting Freak
Posts: 812
What about type="labelenum" in settings.xml?