2014-03-11, 20:57
(2014-03-11, 16:41)xvader Wrote: EDIT3: My fix was to edit gui.py in the skin shortcuts script on line 539 and change "PlayMedia" to "RunPlugin"
I'm guessing this is a terrible way to go about it, but it does allow me to see the favorites in the sub menus now and it executes them correctly.
EDIT2: I figured out what the issue was.
Using advanced launcher, if you set a launcher as a favorite you can launch it from a menu setting.
however, you get a "opening stream" dialog box. if you open the favorites.xml file and change "play media" to "run plugin" it fixes that issue.
when you do this however, aeon nox skin will no longer see it as valid favorite in the skin menu editor. it shows "0" favorites. if you change it back to "play media" in the xml file. it works.
is that something that can be fixed?
Here is what the log looks like
Quote:12:32:03 T:3704 NOTICE: Thread LanguageInvoker start, auto delete: falseQuick question - I'm having a problem creating a menu item (or sub menu item) from "favorites" . When I go to the "favorites" main menu item that already exists and click on it, i can see a list of favorites and if i click on them, they run as they should. But when i go back into the skin editing menu and try to add one of them as a main menu item, it pauses for a second and then goes back a screen. or if i go into the sub menu editor and i scroll to the favorites to choose from, it shows "0" favorites.
12:32:03 T:3704 NOTICE: -->Python Interpreter Initialized<--
12:32:04 T:1504 ERROR: XBMC.PlayMedia could not play media: plugin://script.skinshortcuts/?type=launch&path=RunPlugin%28%26quot%3Bplugin%3A//plugin.program.advanced.launcher/%3Fcb46cfe13df8ad3bb9949ea6b2b61cb8/8fe932c5854cdb0e52cf79fcb863b514%26quot%3B%29&group=X101
12:32:04 T:4680 NOTICE: Thread LanguageInvoker start, auto delete: false
What am i missing?
Thanks!
When Advanced Launcher has a proper Gotham release, I'll be able to support in properly in script.skinshortcuts.
In the meantime, try changing the favourites.xml to RunScript rather than RunPlugin - XBMC is quite specific about what it will return via JSON for favourites, and it *may* not return items with RunPlugin, whereas I know it returns items with RunScript. Your change to the code will mean you won't be able to play any favourite'd media from a submenu. As an alternative, leave the line as it was, but place the following (completely untested) above it:
Code:
elif item['type'] == "media" and item['path'].contains("plugin.program.advanced.launcher"):
action = 'RunPlugin("' + item['path'] + '")'