User Tools

Site Tools


doc:appunti:software:kodi_addon

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
doc:appunti:software:kodi_addon [2023/05/26 14:47] – [How to start an external program from Kodi] niccolodoc:appunti:software:kodi_addon [2023/05/26 15:02] – [How to start an external program from Kodi] niccolo
Line 314: Line 314:
            
 <code python> <code python>
-# This works only if it is a Python script.+# This works only for a Python script.
 # Notice "special://home" is "/home/kodi/.kodi" on the Raspberry Pi. # Notice "special://home" is "/home/kodi/.kodi" on the Raspberry Pi.
 xbmc.executescript('special://home/bin/run-script.py') xbmc.executescript('special://home/bin/run-script.py')
Line 323: Line 323:
 <code python> <code python>
 # Add a context menu item to the add-on xbmcgui.ListItem object. # Add a context menu item to the add-on xbmcgui.ListItem object.
 +# This works only for a Python script.
 li.addContextMenuItems([('Photo Reframe', 'RunScript(special://home/bin/run-script.py,arg1)')]) li.addContextMenuItems([('Photo Reframe', 'RunScript(special://home/bin/run-script.py,arg1)')])
 </code> </code>
Line 329: Line 330:
  
 <code python> <code python>
-xbmc.executebuiltin('XBMC.RunScript(special://home/bin/my-script)')+xbmc.executebuiltin('XBMC.RunScript(special://home/bin/run-script.py)')
 </code> </code>
  
 +Other non-tested code to execute plugins or scripts:
 +
 +<code python>
 +xbmc.executebuiltin('RunPlugin(plugin://plugin.video.youtube/?addon_id=plugin.video.example)')
 +xbmc.executebuiltin('RunPlugin("plugin.video.something")')
 +xbmc.executebuiltin('RunAddon("script.something")')
 +</code>
  
   * **[[https://github.com/graysky2/kodi-standalone-service/blob/master/README.md|kodi-standalone-service]]**   * **[[https://github.com/graysky2/kodi-standalone-service/blob/master/README.md|kodi-standalone-service]]**
Line 339: Line 347:
   * **[[https://kodi.wiki/view/External_players|Kodi External players]]**   * **[[https://kodi.wiki/view/External_players|Kodi External players]]**
   * **[[https://kodi.wiki/view/Settings/System/Display|Kodi: Settings, System, Display]]**   * **[[https://kodi.wiki/view/Settings/System/Display|Kodi: Settings, System, Display]]**
 +  * **[[https://stackoverflow.com/questions/54452592/how-to-start-another-addon-from-a-kodi-addon|How to start another addon from a kodi addon]]**
  
 ===== Web References ===== ===== Web References =====
doc/appunti/software/kodi_addon.txt · Last modified: 2023/05/26 15:05 by niccolo