Kodi Community Forum
Multiple Actions for menu item - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Skins Support (https://forum.kodi.tv/forumdisplay.php?fid=67)
+---- Forum: Skin Archive (https://forum.kodi.tv/forumdisplay.php?fid=179)
+----- Forum: reFocus (https://forum.kodi.tv/forumdisplay.php?fid=72)
+----- Thread: Multiple Actions for menu item (/showthread.php?tid=199645)



Multiple Actions for menu item - bout100 - 2014-07-10

Could be a noob question, but is it possible to add two 'custom actions' in a menu item created through the customize main menu option? I want a 'sync library' option that will call both UpdateLibrary(music) and CleanLibrary(music).

Many thanks in advance!


RE: Multiple Actions for menu item - Jeroen - 2014-07-10

I think it's possible, but you're going to have to get your hands dirty and add an entry to your overrides.xml:

PHP Code:
<override action="XBMC.CleanLibrary(music)">
    <
action>UpdateLibrary(music)</action>
    <
action>XBMC.CleanLibrary(music)</action>
</
override

And after that selecting the "clean audio library" entry in the "XBMC Commands" group.

I haven't tested this, but I think that should work.

More info here, specifically the section "Overriding an action"