Adding Addons to keymap and favourites
#1
How can I add an add-on to favourites.xml in Dharma Beta 4?

I've tried this:
<favourite name="Apple Movie Trailers Lite" thumb="special://home/addons/plugin.video.apple.movie.trailers.lite/icon.png">RunScript(special://home/addons/plugin.video.apple.movie.trailers.lite/addon.py)</favourite>

but when I start this from favourites I get an error: script failed: addon.py

When I start the apple trailers lite script from video addons it runs without problems.
Reply
#2
eriksmith200 Wrote:How can I add an add-on to favourites.xml in Dharma Beta 4?

I've tried this:
<favourite name="Apple Movie Trailers Lite" thumb="special://home/addons/plugin.video.apple.movie.trailers.lite/icon.png">RunScript(special://home/addons/plugin.video.apple.movie.trailers.lite/addon.py)</favourite>

but when I start this from favourites I get an error: script failed: addon.py

When I start the apple trailers lite script from video addons it runs without problems.

go to video addons, select apple trailers lite script, bring up the context meny("c" on the keyboard) and add it to favorites.... that should work
Reply
#3
Amet Wrote:go to video addons, select apple trailers lite script, bring up the context meny("c" on the keyboard) and add it to favorites.... that should work

doh! I was thinking xbmc still needs xml hacking, thanks for the tip Wink
Reply
#4
Incidentally, once you've added the addon to your favourites it's easy to define a key mapping for it. If you edit favourites.xml you'll see something like:

<favourite name="MCERemote">ActivateWindow(10001, "plugin://plugin.program.mceremote/")</favourite>

To map this to e.g. ctrl-A use:

<a mod="ctrl">ActivateWindow(10001,"plugin://plugin.program.mceremote/")</a>

Adding the addon to the favourites then editing favourites.xml is the only way I know to get the number for the first arguament to ActivateWindow.

JR
Reply
#5
In addition to this issue, I'd like to map a key on my Harmony remote to the subtitle script. I used to have this in 9.11 (Bierdopje subtitle script), but it doesn't seem to work in Dharma beta 4.

I've added the following line to Harmony.xml in the keymaps-dir.

<obc15>RunScript(/home/xbmc/.xbmc/addons/script.xbmc.subtitles/default.py)</obc15>

Other actions seem to work fine, but I can't get scripts (or addons) to work this way...
Reply
#6
MrWolf Wrote:In addition to this issue, I'd like to map a key on my Harmony remote to the subtitle script. I used to have this in 9.11 (Bierdopje subtitle script), but it doesn't seem to work in Dharma beta 4.

I've added the following line to Harmony.xml in the keymaps-dir.

<obc15>RunScript(/home/xbmc/.xbmc/addons/script.xbmc.subtitles/default.py)</obc15>

Other actions seem to work fine, but I can't get scripts (or addons) to work this way...

<obc15>RunScript(script.xbmc.subtitles)</obc15> should be enough

not sure what "obc15" represents though
Reply
#7
Thanks, that indeed did the trick!

FYI, <obc15> is a buttoncode for the Harmony-remote.
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
Adding Addons to keymap and favourites00