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:

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

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:

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).