Mudislander
Skilled Skinner
Posts: 1,155
Joined: Jun 2009
Reputation: 20
|
On my Confluence mod the following visible labels have stopped working on the windows builds after 2ndAug (Not checked Linux). I presume it's from Skin Condition Cleanup
PHP Code:
<visible>substring(ListItem.FileName,.mkv,[align=right]) + IsEmpty(ListItem.TVShowTitle) + !IsEmpty(ListItem.Title)</visible>
Please could somebody give me advice on the new structure.
Thanks
[Edit] Been doing some searching & found this, not the problem - but I like it!!
vdrfan Wrote:added: info label 'Listitem.FileExtension' - returns file extension without leading dot (eg. 'wav') in https://github.com/xbmc/xbmc/commit/8689...83481cd917
Noli illegitimi carborundum
(This post was last modified: 2011-08-07 20:18 by Mudislander.)
|
|
find
quote
|
jmarshall
Team-XBMC Developer
Posts: 24,523
Joined: Oct 2003
Reputation: 138
|
Take the brackets off the Right.
|
|
find
quote
|
Mudislander
Skilled Skinner
Posts: 1,155
Joined: Jun 2009
Reputation: 20
|
Nope. Still not working. I Actually didn't have the brackets in some places.
substring(ListItem.FileName,.mkv) works, but
substring(ListItem.FileName,.mkv,Right) does not work. It used to work up to and including the Windows build of 2ndAug.
Just checked my XBMC log & there are a lot of errors complaining about unmatched parentheses on other conditions which are new.
This whole post is moot really as I will redo the code with a more eligant solution using 'Listitem.FileExtension'. At the same time check & get rid of the other errors in my log. I will then recheck on this substring.
Thanks anyway.
[Edit] Fixed log errors (Batch replace gone wrong) Boolean Condition substring is still not working with additional parameter.
Noli illegitimi carborundum
(This post was last modified: 2011-08-08 21:09 by Mudislander.)
|
|
find
quote
|
jmarshall
Team-XBMC Developer
Posts: 24,523
Joined: Oct 2003
Reputation: 138
|
I probably broke it in that case - will see if I can reproduce + fix.
|
|
find
quote
|