Launch add-on from another add-on
#1
Question 
Is it possible to launch a installed add-on from a running add-on (with input parameters, if supported)?

I'm planning a simple feed reader of youtube and vimeo links and their great add-ons are doing their work fine so I was just thinking I could launch them with relevant parameters ?




PS. The vimeo plugin (http://forum.xbmc.org/showpost.php?p=346460&postcount=1) is working as an add-on with just some tiny changes...
Pneumatic | SABnzbd | XBMC that just works - openelec
Reply
#2
yes, if the addon you call permit that (you need to send the good url for plugin addon)
Reply
#3
Ah, great. Mind sharing a code snippet for achieving this?
Pneumatic | SABnzbd | XBMC that just works - openelec
Reply
#4
xbmc.executebuiltin('activatewindow(somewindow,plugin://plugin.video.youtube/some.url/?some_param=whatever)')

but most likely what you want is to incorporate results in your add-on. which means you'll have to ask the utub/vimeo guys to split their plugin in a script.module and a plugin - like i outlined in the dev forum some days ago.
Reply
#5
Spiff, thank you.

I have tried both

Code:
xbmc.executebuiltin('activatewindow(video,plugin://plugin.video.youtube/?path=/root/search&action=play_video&videoid=DBcT9iwZqUQ)')

xbmc.executebuiltin('RunPlugin(plugin.video.vimeo/?mode=2&videoID=12832649)')

and only managed to almost crash xbmc.

Code:
01:51:01 T:3712 M:2347106304 WARNING: XFILE::CVideoDatabaseDirectory::GetLabel - Unknown nodetype requested 6
01:51:02 T:5456 M:2347118592 WARNING: CFileFactory::CreateLoader - Unsupported protocol xbmc.executebuiltin('activatewindow(home,plugin
01:51:02 T:5456 M:2347118592 WARNING: CFileFactory::CreateLoader - Unsupported protocol xbmc.executebuiltin('activatewindow(home,plugin
01:51:02 T:5456 M:2347077632 WARNING: CFactoryDirectory::Create - Unsupported protocol xbmc.executebuiltin('activatewindow(home,plugin
01:51:02 T:5296 M:2347028480   ERROR: Unable to lookup host: 'plugin.video.vimeo'
01:51:02 T:3712 M:2348400640 WARNING: XFILE::CVideoDatabaseDirectory::GetLabel - Unknown nodetype requested 6
01:51:02 T:5648 M:2348466176 WARNING: CFileFactory::CreateLoader - Unsupported protocol xbmc.executebuiltin('activatewindow(home,plugin
01:51:02 T:5648 M:2348367872 WARNING: CFileFactory::CreateLoader - Unsupported protocol xbmc.executebuiltin('activatewindow(home,plugin
01:51:02 T:5648 M:2348367872 WARNING: CFactoryDirectory::Create - Unsupported protocol xbmc.executebuiltin('activatewindow(home,plugin
01:51:02 T:5648 M:2349006848 WARNING: CFileFactory::CreateLoader - Unsupported protocol xbmc.executebuiltin('activatewindow(home,plugin
01:51:02 T:5648 M:2349006848 WARNING: CFileFactory::CreateLoader - Unsupported protocol xbmc.executebuiltin('activatewindow(home,plugin
01:51:02 T:5648 M:2348957696 WARNING: CFactoryDirectory::Create - Unsupported protocol xbmc.executebuiltin('activatewindow(home,plugin
01:51:02 T:5648 M:2348773376 WARNING: CFileFactory::CreateLoader - Unsupported protocol xbmc.executebuiltin('activatewindow(home,plugin
01:51:02 T:5648 M:2349383680 WARNING: CFileFactory::CreateLoader - Unsupported protocol xbmc.executebuiltin('activatewindow(home,plugin
01:51:02 T:5648 M:2349383680 WARNING: CFactoryDirectory::Create - Unsupported protocol xbmc.executebuiltin('activatewindow(home,plugin
01:51:02 T:2416 M:2348679168   ERROR: Unable to lookup host: 'plugin.video.vimeo'
01:51:02 T:2416 M:2348679168   ERROR: Unable to lookup host: 'plugin.video.vimeo'
01:51:02 T:2416 M:2348679168   ERROR: Unable to lookup host: 'plugin.video.vimeo'
01:51:02 T:2416 M:2348679168   ERROR: InputStream: Error opening, xbmc.executebuiltin('activatewindow(home,)')
Pneumatic | SABnzbd | XBMC that just works - openelec
Reply
#6
Just calling an action from another plugin should work like this:
Code:
xbmc.executebuiltin('XBMC.RunPlugin(plugin://plugin.program.jdownloader/?action=addlink&url=http://www.abc.com/test.rar)')
Reply
#7
Thanks! Big Grin
just figured it out. Got a whole lot of new problems now...
Pneumatic | SABnzbd | XBMC that just works - openelec
Reply
#8
Got an answer here: http://forum.xbmc.org/showpost.php?p=628...tcount=321 with using xbmc.PlayMedia that solved my problem
Pneumatic | SABnzbd | XBMC that just works - openelec
Reply

Logout Mark Read Team Forum Stats Members Help
Launch add-on from another add-on0