Kodi 15.1: can't use some number on labels.
I'm writing an xml window to suit my needs and I have some text to put in created by a python function. In one specific case I have a numeric result, between 1 and 12. I didn't figure out how to link this result on my label and now that I'm in testing I'm inserting it manually on my custom xml.
Sadly I've discovered that some numbers are shortcuts to menu text. For example the number 1 is Pictures, 2 is music and so on.
How can I add a simple number to my label? Or better how can I link to my txt file where the number is stored?

<control type="label">

Edit: I'm trying to use a $VAR. I've created Variables.xml, and I've included it on Includes.xml. Then I've created a variable:
<variable name="tempo">
and I've added it on my custom.xml as <label>$VAR[tempo]</label> . No result is shown on my page.
Ok, another issue. If I update the line when Kodi is already running, for example with the label "- 7 -" my xml will be not actualized until I reload the skin. Then a simple text is not a good solution.
Is there a good guide about how to use $VAR or $INFO? The wiki is not so clear.

Thread Rating:
  • 0 Vote(s) - 0 Average

Logout Mark Read Team Forum Stats Members Help
Kodi 15.1: can't use some number on labels.00
This forum uses Lukasz Tkacz MyBB addons.