Kodi Community Forum

Full Version: Nested $INFO calls
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
No, nested $INFO[] calls are usually not possible.
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).