Kodi Community Forum
How to boot XBMC directly into Movies or TV Shows or an Addon - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Tips, tricks, and step by step guides (https://forum.kodi.tv/forumdisplay.php?fid=110)
+--- Thread: How to boot XBMC directly into Movies or TV Shows or an Addon (/showthread.php?tid=192659)



How to boot XBMC directly into Movies or TV Shows or an Addon - Shaolin - 2014-04-19

Hi,

Someone asked this question on the XBMC section of Reddit so I thought I'd post my reply here too which consolidates a few threads from the forums and will hopefully aid in further searches for the same answer.

How to Boot XBMC into an Addon (Advanced Launcher in this case)

This thread details how to autostart an addon upon XBMC startup

Moderator Edit
Autoexec.py is deprecated in Kodi and no longer works. You will need to use Autoexec Service... https://kodi.wiki/view/Autoexec_Service

Essentially you need to put this Autoexec.py file in your userdata folder which on Windows can be found at:

%APPDATA%\XBMC\userdata\

The Autoexec.py simply contains 2 lines of code:

Code:
import xbmc
xbmc.executebuiltin("RunAddon(plugin.program.advanced.launcher)")

XBMC then boots directly to the addon listed in Autoexec.py. Edit the Autoexec.py to change the addon you wish to boot into. Open the addon.xml of your chosen addon to find the addon ID you need to enter. In this case it is plugin.program.advanced.launcher

How to Boot XBMC into the Programs Section

This thread shows how to make XBMC boot into "Programs" or "Movies" or "TV Shows" or any other XBMC window you like. Although you will need to edit Home.xml to achieve this. You may need the following WIKI pages to see what the different XBMC window ID's are:

http://wiki.xbmc.org/?title=Window_IDs
http://wiki.xbmc.org/index.php?title=Opening_Windows_and_Dialogs

Here is a copy of my confluence Home.xml which I have edited to boot XBMC directly into "Programs"

Just replace your confluence Home.xml which (for confluence at least) is located at:

C:\Program Files (x86)\XBMC\addons\skin.confluence\720p

If you dont use confluence then add the following line:

Code:
<onload condition="Window.Previous(startup)">ActivateWindow(Programs,return)</onload>

immediately after

Code:
<defaultcontrol always="true">9000</defaultcontrol>

which is at the start of the xml, such that it appears like so in your skins Home.xml:

Code:
<defaultcontrol always="true">9000</defaultcontrol>
<onload condition="Window.Previous(startup)">ActivateWindow(Programs,return)</onload>

If you dont use confluence you can find your skin files and Home.xml in:

%APPDATA%\XBMC\addons\Your Skin Folder\720p\Home.xml


How to Boot XBMC into the Movies Section

This confluence Home.xml will boot directly into Movies

Code to insert into Home.xml for skins other than confluence:

Code:
<onload condition="Window.Previous(startup)">ActivateWindow(Videos,MovieTitles,return)</onload>

How to Boot XBMC into the TV Shows Section

This confluence Home.xml will boot directly into TV Shows

Code to insert into Home.xml for skins other than confluence:

Code:
<onload condition="Window.Previous(startup)">ActivateWindow(Videos,TvShowTitles,return)</onload>

How to Boot XBMC into a Smart Playlist

Edit Audiobooks.xsp in the code below to the name of your Smart Playlist and also change the path if it is not a music playlist then insert this code into your Home.xml as described above.

Code:
<onload condition="Window.Previous(startup)">ActivateWindow(10025,special://profile/playlists/music/Audiobooks.xsp,return)</onload>



RE: How to boot XBMC directly into Movies or TV Shows or an Addon - stevedawg85 - 2014-10-18

This is almost what I'm looking for. I want to map a button on my remote to perform these separate actions, is that possible? Ex. I am in the middle of WMC, and when I press the Movies/TV/Green button it will open accordingly in XBMC to however I programmed these.


RE: How to boot XBMC directly into Movies or TV Shows or an Addon - THX-UltraII - 2015-10-15

(2014-04-19, 17:05)Shaolin Wrote: How to Boot XBMC into the Movies Section

This confluence Home.xml will boot directly into Movies

Code to insert into Home.xml for skins other than confluence:

Code:
<onload condition="Window.Previous(startup)">ActivateWindow(Videos,MovieTitles,return)</onload>

Hi Shaolin,

First of all I would like to thank you for this post because this was exactly what I was looking. I inserted the code in my Home.xml file (I use the MQ5 skin) and now Kodi boots directly into my MOVIES. However, when booting up the MAIN MENU is seen for a few miliseconds or so. Is there a way to solve this?


RE: How to boot XBMC directly into Movies or TV Shows or an Addon - wwwbest - 2015-10-21

(2014-04-19, 17:05)Shaolin Wrote: Hi,

Someone asked this question on the XBMC section of Reddit so I thought I'd post my reply here too which consolidates a few threads from the forums and will hopefully aid in further searches for the same answer.

How to Boot XBMC into an Addon (Advanced Launcher in this case)

This thread details how to autostart an addon upon XBMC startup

Essentially you need to put this Autoexec.py file in your userdata folder which on Windows can be found at:

%APPDATA%\XBMC\userdata\

The Autoexec.py simply contains 2 lines of code:

Code:
import xbmc
xbmc.executebuiltin("RunAddon(plugin.program.advanced.launcher)")

XBMC then boots directly to the addon listed in Autoexec.py. Edit the Autoexec.py to change the addon you wish to boot into. Open the addon.xml of your chosen addon to find the addon ID you need to enter. In this case it is plugin.program.advanced.launcher

How to Boot XBMC into the Programs Section

This thread shows how to make XBMC boot into "Programs" or "Movies" or "TV Shows" or any other XBMC window you like. Although you will need to edit Home.xml to achieve this. You may need the following WIKI pages to see what the different XBMC window ID's are:

http://wiki.xbmc.org/?title=Window_IDs
http://wiki.xbmc.org/index.php?title=Opening_Windows_and_Dialogs

Here is a copy of my confluence Home.xml which I have edited to boot XBMC directly into "Programs"

Just replace your confluence Home.xml which (for confluence at least) is located at:

C:\Program Files (x86)\XBMC\addons\skin.confluence\720p

If you dont use confluence then add the following line:

Code:
<onload condition="Window.Previous(startup)">ActivateWindow(Programs,return)</onload>

immediately after

Code:
<defaultcontrol always="true">9000</defaultcontrol>

which is at the start of the xml, such that it appears like so in your skins Home.xml:

Code:
<defaultcontrol always="true">9000</defaultcontrol>
<onload condition="Window.Previous(startup)">ActivateWindow(Programs,return)</onload>

If you dont use confluence you can find your skin files and Home.xml in:

%APPDATA%\XBMC\addons\Your Skin Folder\720p\Home.xml


How to Boot XBMC into the Movies Section

This confluence Home.xml will boot directly into Movies

Code to insert into Home.xml for skins other than confluence:

Code:
<onload condition="Window.Previous(startup)">ActivateWindow(Videos,MovieTitles,return)</onload>

How to Boot XBMC into the TV Shows Section

This confluence Home.xml will boot directly into TV Shows

Code to insert into Home.xml for skins other than confluence:

Code:
<onload condition="Window.Previous(startup)">ActivateWindow(Videos,TvShowTitles,return)</onload>

How to Boot XBMC into a Smart Playlist

Edit Audiobooks.xsp in the code below to the name of your Smart Playlist and also change the path if it is not a music playlist then insert this code into your Home.xml as described above.

Code:
<onload condition="Window.Previous(startup)">ActivateWindow(10025,special://profile/playlists/music/Audiobooks.xsp,return)</onload>

I'll try it


RE: How to boot XBMC directly into Movies or TV Shows or an Addon - Concestly - 2015-12-03

Anyone achieved to install advanced launcher on kodi 15 ? I tried to install zip file downloaded from github but I received an incorrect structure extension.

Thank you !


RE: How to boot XBMC directly into Movies or TV Shows or an Addon - aorin1 - 2016-02-12

Hi, I'm starting here today, though I know Kodi since it was XBMC.
This thread fits my needs, I intend to boot Kodi under Movies, more specifically under this screen:

Image

Using the Home.xml provided above, it boots up under movies, but I have to tap Recently added to open up the screen above.

Thanks for reading!


RE: How to boot XBMC directly into Movies or TV Shows or an Addon - Bob00 - 2017-03-13

Hi,

This works great in Windows, but how is it done in Ubuntu?

I tried the autoexec.py with the following, but it doesn't work:

import xbmc
xbmc.executebuiltin('XBMC.ActivateWindow(myvideolibrary,movietitles)')


RE: How to boot XBMC directly into Movies or TV Shows or an Addon - graceinc - 2017-03-15

Thanks for the share.


RE: How to boot XBMC directly into Movies or TV Shows or an Addon - Spiderfish - 2018-10-22

Thanks for share very helpful thread


RE: How to boot XBMC directly into Movies or TV Shows or an Addon - samzike - 2018-12-24

Thank for sharing this helpful information.


RE: How to boot XBMC directly into Movies or TV Shows or an Addon - RickWJ324 - 2019-01-28

I'm wanting to do this as well on an OpenElec pc.  Trying to set the startup to go to MOVIES, but that's not an option in the skin settings.  I found a thread that references how to edit the startup.xml file and I can get to that file via WinSCP, however the permissions on the system files/folders do not let me alter the existing Startup.xml file at all (cannot delete, rename, edit, etc).

How can I replace the details within this xml file?  I'm connecting to it on a Windows 10 pc via WinSCP.  Is there a better method of connecting to the system files or any way to edit the permissions on these files?

--Rick


RE: How to boot XBMC directly into Movies or TV Shows or an Addon - User 436809 - 2019-07-14

Thank you, this just helped me a huge amount. Thanks so much!


RE: How to boot XBMC directly into Movies or TV Shows or an Addon - filip1f - 2024-02-16

Thanks, I need this.


RE: How to boot XBMC directly into Movies or TV Shows or an Addon - dmacleo - 2024-02-17

I use this to start directly into my files section
Quote:import xbmc

xbmc.executebuiltin('ActivateWindow(Videos,Sources://video/,return)')



RE: How to boot XBMC directly into Movies or TV Shows or an Addon - Karellen - 2024-02-17

(2014-04-19, 17:05)Shaolin Wrote: Essentially you need to put this Autoexec.py file in your userdata folder which on Windows can be found at:
This is deprecated and no longer works in Kodi.

The new method is to use Autoexec Service.
See... https://kodi.wiki/view/Autoexec_Service