Kodi Community Forum

Full Version: Running Plugin Addons from Home
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
It seems that I can only run Plugins from their specified source and not from the Home via a custom button.

Here's the debug log firstly running Ted Talks from the Videos section and then from Home.

http://pastebin.com/ZsxskifC

Here's both the codes used for the custom button -

PHP Code:
<onclick>Skin.SetAddon(VideoButtonPath_1,xbmc.python.pluginsource)</onclick

PHP Code:
<onclick>RunAddon($INFO[Skin.String(VideoButtonPath_1)])</onclick
yep, tried in the past to add a plugin button to DialogAlbumInfo.xml with no succes Confused
We used to be able to launch plugins from Home using -

PHP Code:
<onclick>ActivateWindow(24,plugin://video/IPlayer/?tvradio=tv)</onclick> 
Code:
<onclick>ActivateWindow(10025,plugin://plugin.video.nrk/)</onclick>

works for me in Confluence
But soon enough they'll all be in addons/
Got it working using -

<onclick>ActivateWindow(24,plugin://$INFO[Skin.String(VideoButtonPath_1)])</onclick>
Guess Hitcher is right.

Had Shoutcast button in radio submenu and used:

<onclick>XBMC.ActivateWindow(MyMusicFiles,Shoutcast)</onclick>

Was far from perfect cause left music in file mode and couldn't use ",return"
but hey it was the only way to get it done.

Now that shoutcast is in addons button doesn't work anymore.
Had hopes Smile maybe I could open from library from now on so tried:

<onclick>ActivateWindow(MyMusicLibrary,Addons,shoutcast,return)</onclick>..opens audio addons
<onclick>ActivateWindow(10025,plugin://plugin.audio.Shoutcast/)</onclick>..opens music-library but freezes
<onclick>ActivateWindow(MyMusicLibrary,plugin://plugin.audio.Shoutcast/)</onclick>..opens music-library
Eek10025 should be the same as MyMusicLibrary, but none off these opens shoutcast since it is an addon.
Edit stupid me :o 10502 is musiclibrary

Edit:
had to eat while posting will try that to..

<onclick>ActivateWindow(24,plugin://path to shoutcast/default.py)</onclick> is also no succes here.
<onclick>ActivateWindow(10501,plugin://plugin.audio.shoutcast/)</onclick>

worked for me, again in Confluence

EDIT: capital "S" in plugin://plugin.audio.Shoutcast could be the issue, not really sure
Just added custom plugin buttons to Music and Shoutcast worked for me using -

PHP Code:
<onclick>ActivateWindow(501,plugin://$INFO[Skin.String(MusicButtonPath_1)])</onclick> 

where $INFO[Skin.String(MusicButtonPath_1)] is set to plugin.audio.shoutcast
Thanks, that worked !!
Edit..Sad still in musicfiles and no return function
btw I really messed up 10025 is video library not music oops
return works anywhere.

Also, PLEASE don't use windowIDs here. It's both easier on you (as pointed out several times in this thread already :p ), and more reliable to use the window name!

If I can make it easier to do plugin-specific stuff then I'm happy to do so.

Cheers,
Jonathan
I only used the window id while testing but I have recently gone through the whole skin and changed all window ids to their names but (and I know it's no longer supported by you guys so forgive me) I ran into problems doing this on the Xbox for some reason. It wouldn't recognise 'musicscan' and 'videoscan' so I had to change them back to 112 and 133 respectively. I suspect there maybe others as well, any reason for this?
Hitcher Wrote:any reason for this?

most likely 'musicscan' and 'videoscan' are not defined in ButtonTranslator.cpp in the xbox source.
Looks like you're right mate -

else if (strWindow.Equals("scandialog")) wWindowID = WINDOW_DIALOG_MUSIC_SCAN;

from 9.04_Babylon-xbox and there's no mention of the video scan at all.
Amet Wrote:<onclick>ActivateWindow(10501,plugin://plugin.audio.shoutcast/)</onclick>

can anyone get this to work in library mode ?

<onclick>ActivateWindow(MusicFiles,plugin://plugin.audio.shoutcast/)</onclick>
works fine

but,
<onclick>ActivateWindow(MusicLibrary,plugin://plugin.audio.shoutcast/)</onclick>
does not...
Pages: 1 2