Kodi Community Forum
Force addon list update? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+--- Thread: Force addon list update? (/showthread.php?tid=114613)



Force addon list update? - dahool - 2011-11-14

Hi , i would like to know, how can i force xbmc to update which plugins are installed?

For example, if I copy directory of new plugin while xbmc is running, I can't see it in addon manager. I have to restart xbmc to see the new plugin. Can this update be done, without restarting xbmc? What python command can i use?

tnx,
dahool


- spiff - 2011-11-14

yes, you can refresh from the context menu or you can send the UpdateLocalAddons builtin.


- dahool - 2011-11-14

Hi, tnx for the quick reply. Is the whole command like this:
xbmc.executebuiltin( 'UpdateLocalAddons' ), becausei can't get it to work. Any ideas?


- spiff - 2011-11-14

it's only in fairly recent eden-pre builds, 3 months maybe.


- dahool - 2011-11-14

There is no other way to do it from within the python script , if u have a dharma build? Ok, tnx very much.


RE: Force addon list update? - catkinso - 2014-02-24

Hi, I found a work around for this, which was to call another script from the menu directly:

Settings.xml from within your skin folder points with this entry:

PHP Code:
<item id="11" description="Picture Viewer">
            <
label>Picture Viewer</label>
            <
onclick>RunScript(&quot;script.mypictureplugin.launcher&quot;)</onclick

Then the script launches the default.py script from within a plugin I created just for this purpose alone, on first run it forces a refresh of the list items.

PHP Code:
import xbmcgui
import xbmc

xbmc
.executebuiltin('ActivateWindow(pictures,plugin://script.mypictureplugin.plugin)')
xbmc.executebuiltin('Container.Refresh'


Or moresimply from within Settings.xml

PHP Code:
<item id="12" description="Picture Viewer">
            <
label>Picture Viewer</label>
            <
onclick>ActivateWindow(pictures,plugin://script.mypictureplugin.plugin)</onclick>
            
<onclick>Container.Refresh</onclick