Nested $INFO calls
#1
Hey everyone,

I am currently working on a script that enables displaying of audio-stream languages in the movie list-view.
For every movie, I set properties like Movie_xy_Audio_z, e.g. "Movie_5_Audio_1".
In a skin, I try to call these properties like that:

PHP Code:
$INFO[Window.Property($INFO[ListItem.DBIDMovie_,_0])] 

Unfortunately, this does not work. xbmc.log says:

Code:
ERROR: unmatched parentheses in Window.Property($INFO[ListItem.DBID

As can be seen, the parans are actually matched. However, nothing is displayed.
I made sure that the properties are correctly stored and calling them directly with e.g.
PHP Code:
$INFO[Window.Property(Movie_14_Audio_1)] 
works.

Are nested $INFO calls at all possible? And if not, is there some kind of workaround?

Any help would be very appreciated! Blush
Reply
#2
No, nested $INFO[] calls are usually not possible.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#3
Hm okay, that is unfortunate.
Is there another way to achieve what I want?

Basically, I want to call a window-property. The name of that property partly depends on the current active ListItem (ListItem.DBID).
Reply

Logout Mark Read Team Forum Stats Members Help
Nested $INFO calls0