2016-03-02, 09:03
I'm trying to obtain a dbid from a listitem in another container. This other container is a list of the latest watched videos. I'm trying to pass the dbid into the extended info script to return a list of recommended movies based on the last watched video. I've tried using the following without any success:
When I replace the $INFO label with a static DBID (like below), it works fine:
This leads me to believe that there is something wrong with the infolabel I'm using. I've looked on the infolabel wiki page and it states that Container(id).ListItemPosition(id).[infolabel] can be used as follows: Shows the infolabel for an item in a Container. the item id is the position in the container relative to the cursor position. ( eg: Container(50).ListItemPosition(4).Genre )
I've even tried using Container(id).ListItemAbsolute(id).[infolabel]
For information, the container I'm trying to pull the dbid from is a 'dummy' container which I've setup as follows:
Ultimately I'd like to use this information in the content tag for a dynamic list, something like this:
Again, this content tag works, when I replace the info label.
Any thoughts or suggestions are much appreciated.
Cheers.
~Raze
Code:
<onclick>ActivateWindow(Videos,plugin://script.extendedinfo?info=similarmovies&&dbid=$INFO[Container(3291).ListItemPosition(1).dbid],return)</onclick>
When I replace the $INFO label with a static DBID (like below), it works fine:
Code:
<onclick>ActivateWindow(Videos,plugin://script.extendedinfo?info=similarmovies&&dbid=123,return)</onclick>
This leads me to believe that there is something wrong with the infolabel I'm using. I've looked on the infolabel wiki page and it states that Container(id).ListItemPosition(id).[infolabel] can be used as follows: Shows the infolabel for an item in a Container. the item id is the position in the container relative to the cursor position. ( eg: Container(50).ListItemPosition(4).Genre )
I've even tried using Container(id).ListItemAbsolute(id).[infolabel]
For information, the container I'm trying to pull the dbid from is a 'dummy' container which I've setup as follows:
Code:
<control type="list" id="3291" description="MoviesDummy">
<visible>false</visible>
<content limit="10">special://skin/extras/playlists/RecentlyWatchedMovies.xsp</content>
</control>
Ultimately I'd like to use this information in the content tag for a dynamic list, something like this:
Code:
<content limit="10">$INFO[ActivateWindow(Videos,plugin://script.extendedinfo?info=similarmovies&&dbid=$INFO[Container(3291).ListItem(0).DBID],return)]</content>
Again, this content tag works, when I replace the info label.
Any thoughts or suggestions are much appreciated.
Cheers.
~Raze