Kodi Community Forum

Full Version: Need some help with function
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Could anyone tell me what I'm doing wrong here?
It either (forgot which one with this code, will confirm when I get home) displays "url" or "http://www.google.be/" as plot, but never "test".

Code:
<GetDetails dest="7">
   (...)
   <RegExp input="$$2" output="&lt;plot&gt;&lt;url function=&quot;GoGoogle&quot;&gt;http://www.google.be/&lt;/url&gt;&lt;/plot&gt;" dest="4+">
      <expression></expression>
   </RegExp>
   (...)
</GetDetails>

<GoGoogle>
   <RegExp input="$$1" output="test" dest="3">
      <expression></expression>
   </RegExp>
</GoGoogle>
you seem to have misunderstood a bit. you can't chain within xml tags. each called function needs to return xml in the format <details>..</details>. the outputs you seek is

Code:
<details><url function="GoGoogle">..</url></details> from GetDetails
and
Code:
<details><plot>test</plot></details> from GoGoogle

the outputs are processed additively. i.e. if a tag is set in both GetDetails and GoGoogle, the GoGoogle value takes precedence since it is processed last.