2019-01-13, 18:05
Hi, I have a line in an xml file which reads
However, when loading that xml, Kodi reports an error of
I've looked at it multiple times but still can't see why it's wrong !!
Anyone able to help me ? Thanks in advance !!
xml:<include content="InfoFlag">
<param name="visible" value="[String.IsEqual($PARAM[infolabel_prefix]ListItem.DBtype,tvshow) | String.IsEqual($PARAM[infolabel_prefix]ListItem.DBtype,episode)] + !String.IsEmpty($PARAM[infolabel_prefix]ListItem.Premiered)" />
<param name="icon" value="lists/airdate.png" />
<param name="label" value="$INFO[$PARAM[infolabel_prefix]ListItem.Premiered]" />
<param name="height" value="50" />
</include>
However, when loading that xml, Kodi reports an error of
Code:
13:05:41.569 T:140454630033792 ERROR: Misplaced [
13:05:41.569 T:140454630033792 ERROR: Error parsing boolean expression [string.isequal($param[infolabel_prefix]listitem.dbtype,tvshow) | string.isequal($param[infolabel_prefix]listitem.dbtype,episode)] + !string.isempty($param[infolabel_prefix]listitem.premiered)
I've looked at it multiple times but still can't see why it's wrong !!
Anyone able to help me ? Thanks in advance !!