Link plugin to custom menu?

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
YodaEXE Offline
Fan
Posts: 454
Joined: May 2010
Reputation: 0
Post: #1
I'm trying to link the new The Escapist plugin to a custom menu on the home screen. I added it to a favourite using the following code:

Code:
<favourites>
    <favourite name="The Escapist">RunPlugin(plugin.video.escapistmagazine)</favourite>
</favourites>

And then I selected that as the favourite to use in the custom menu. However, nothing happens when I select the item. I'm guessing there's something wrong with my code, since it's my first try at using custom menus and favourites, so I figured I'd ask, in case there's something special I need to do to make it work.
find quote
ronie Online
Team-XBMC Member
Posts: 8,253
Joined: Jan 2009
Reputation: 108
Post: #2
Code:
<favourite name="The Escapist">ActivateWindow(VideoLibrary,plugin.video.escapistmagazine)</favourite>

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not PM or 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.
find quote
YodaEXE Offline
Fan
Posts: 454
Joined: May 2010
Reputation: 0
Post: #3
ronie Wrote:
Code:
<favourite name="The Escapist">ActivateWindow(VideoLibrary,plugin.video.escapistmagazine)</favourite>

Hmm, getting closer. That at least makes a window appear, though it's empty. It looks like that doesn't actually run the plugin, which is necessary since when the plugin runs it populates the list.

Don't know if these are relevant, but this is what I'm getting in my log after running the plugin with the code you gave me:

Code:
11:05:13 T:7668 M:4294967295   ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin.video.escapistmagazine
11:05:13 T:7668 M:4294967295   ERROR: CGUIMediaWindow::GetDirectory(plugin.video.escapistmagazine) failed
(This post was last modified: 2011-01-05 19:06 by YodaEXE.)
find quote