Manually get info into skin video Dialog

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
BigBellyBilly Offline
Skilled Python Coder
Posts: 959
Joined: Feb 2005
Reputation: 2
Location: UK
Post: #1
Hi.

I've been trying, with partial success, to show information using the skins DialogVideoInfo.xml window by calling it from a modal class as opposed to from the Contextmenu 'Movie Information'.

All I can get it to show is the infolabel of 'title' in two places and an image, it ignores the Plot, PlotOutline and Date information I've setup in a ListItem.

test video plugin from http://pastebin.com/m7a45c9cf

This test plugin, sets up a small plugin list, from which you can either;

a) Highlight item, then ContextMenu 'Movie Information' - Shows all test data ok

b) Select item - It calls a small class to show DialogVideoInfo.xml after loading a ListItem and setInfo's - but plot etc not shown.

Is there something I have to set inorder to get it to load information from the ListItem I've created ?

I'm trying to do it this way so the user can just select the item, without the need to go throu the ContextMenu. If would also mean the Plugin wouldnt have to live in Video plugin section just to get the correct Contextmenu item to show up.

Any help appreciated.
Thanks
BBB

My Addons (myTV, T3CH Upgrader, DVDProfiler, BBCPodRadio, Comics, Football, GoogleReader, reeplay.it, Metacritic, Phonebin, FileViewer,SVN Repo Installer (contributor)) available at Box.net
find quote
Nuka1195 Offline
Skilled Python Coder
Posts: 3,917
Joined: Dec 2004
Reputation: 17
Post: #2
what i did was just use the builting XBMC.Action(Info)

For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
find quote
BigBellyBilly Offline
Skilled Python Coder
Posts: 959
Joined: Feb 2005
Reputation: 2
Location: UK
Post: #3
I can see you've added it to the ContextMenu, which is still a little indirect, but could that xbmc.action be called as a builtin *somehow* , maybe like this: ?

li=xbmcgui.ListItem( title, updated, image, image )
li.setInfo( "video", { "Title": title, "Date": updated[:10], "Director": author, "Plot": content, "Plotoutline": content} )
xbmc.executebuiltin("XBMC.Action(info)")

Is it a builtin, I've not got upto date docs with me and wiki doesnt mention it

My Addons (myTV, T3CH Upgrader, DVDProfiler, BBCPodRadio, Comics, Football, GoogleReader, reeplay.it, Metacritic, Phonebin, FileViewer,SVN Repo Installer (contributor)) available at Box.net
find quote
Waffa Offline
Posting Freak
Posts: 1,163
Joined: May 2008
Reputation: 7
Location: Netherlands
Post: #4
Here I can play with Action IDs
Thanks for the hint.
find quote
Nuka1195 Offline
Skilled Python Coder
Posts: 3,917
Joined: Dec 2004
Reputation: 17
Post: #5
no it's a builting. Smile yes a built-in.

better yet just set the listitems path to XBMC.Action(Info). the listitem now takes an optional path.

For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
find quote