Bug Expressions $EXP not working in include conditions
#1
Is it just me, or do $EXP visibility expressions not work inside includes? Seems like a bug to me.

e.g.
Code:
<include condition="$EXP[myvisibilityexpression">myinclude</include>

If I can't use them for includes they aren't a whole lot of use because I still have to maintain separate conditions for my includes and it actually makes my code more difficult to manage because I have to remember to update both conditions and the expressions rather than just do a batch find and replace.
Arctic Fuse - Alpha now available. Support me on Ko-fi.
Reply
#2
From my testing it appears they don't work in variables either.
Reply
#3
(2017-03-01, 03:40)braz Wrote: From my testing it appears they don't work in variables either.

Yeah. They aren't much use if you can only use them in specific cases.
Arctic Fuse - Alpha now available. Support me on Ko-fi.
Reply
#4
Agreed. These are the expressions I use, but am currently only using them in views and the video/music info dialogs.

Code:
<expression name="isPlugin">String.StartsWith(Container.FolderPath,plugin://)</expression>
<expression name="isMovie">String.IsEqual(ListItem.DBTYPE,movie)</expression>
<expression name="isVideo">String.IsEqual(ListItem.DBTYPE,video)</expression>
<expression name="isTvshow">String.IsEqual(ListItem.DBTYPE,tvshow)</expression>
<expression name="isSeason">Container.Content(seasons)</expression>
<expression name="isSet">String.IsEqual(ListItem.DBTYPE,set)</expression>
<expression name="isEpisode">String.IsEqual(ListItem.DBTYPE,episode)</expression>
<expression name="isMusicvideo">String.IsEqual(ListItem.DBTYPE,musicvideo)</expression>
<expression name="isArtist">String.IsEqual(ListItem.DBTYPE,artist)</expression>
<expression name="isAlbum">String.IsEqual(ListItem.DBTYPE,album)</expression>
<expression name="isSong">String.IsEqual(ListItem.DBTYPE,song)</expression>
<expression name="isInfoDialog">[Window.IsVisible(addoninformation) | Window.IsVisible(movieinformation) | Window.IsVisible(musicinformation) | Window.IsVisible(songinformation)]</expression>
Reply
#5
Thanks to rmrector and xhaggi for the necessary changes that were merged into master branch.
Nightlies starting tomorrow should have the new functionality.

https://github.com/xbmc/xbmc/pull/12035
Reply
#6
Excellent News Big Grin
Arctic Fuse - Alpha now available. Support me on Ko-fi.
Reply

Logout Mark Read Team Forum Stats Members Help
Expressions $EXP not working in include conditions0