Kodi Community Forum
Way to make a "Video Addon" behave like a "Program Addon"? - 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)
+---- Forum: Program Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=151)
+---- Thread: Way to make a "Video Addon" behave like a "Program Addon"? (/showthread.php?tid=87484)



Way to make a "Video Addon" behave like a "Program Addon"? - Mike8913 - 2010-12-13

I use custom shortcut on my main menu to access hulu. Only problem is that accessing hulu changes the default location for the Videos shortcut to Hulu as well. I have to back out of the menu and select my Video source to get to my home movies.

If Hulu one under the Program Add-ons this would not effect me. Is there anyway to change where Hulu executes from. I'm running Live RC2


- spiff - 2010-12-13

yes, just change the provides tag in addon.xml


- Mike8913 - 2010-12-13

does this effect the addons ability to update?


- Mike8913 - 2010-12-13

I changed the provides tag to "executable" but opening Hulu still causes Videos to open in the Hulu main screen.

any suggestions?


- jmarshall - 2010-12-14

You need to alter the skin by the sounds of things. If you want the "Videos" button to always go to the root of video files view, then make it ActivateWindow(VideoFiles,"",return)


- Mike8913 - 2010-12-14

would you mind going into more depth on how to do that?


- jmarshall - 2010-12-14

Open up Home.xml

Look for ActivateWindow(Videos).

Change to the above.


- Mike8913 - 2010-12-14

Mine reads "<onclick>XBMC.ActivateWindow(MyVideoFiles)</onclick>"

Should I change it to "<onclick>XBMC.ActivateWindow(VideoFiles,"/home/Xbmc/Videos",return)</onclick>" ?


- jmarshall - 2010-12-14

Only if that's where you want it to go by default.


- Mike8913 - 2010-12-14

made the changes, but still no luck. Any other suggestions?


- jmarshall - 2010-12-14

Check a debug log to see that you actually did make the changes you think you did.

Hint: You changed the wrong button - you want the main video button which is linking via ActivateWindow(MyVideos) or something similar.


- Mike8913 - 2010-12-14

My Home.xml

I changed what I thought was the main button. Please take a look if you don't mind.