Building Kodi / XBMC

This are some notes I made when setting up Kodi.

The features I’m after (other than default)

  1. Aeon Nox Skin
  2. Multiple libraries (to split my movies by language)
  3. TV Shows
  4. File browser for stuff that does not fit either of these or is short term
  5. Fan to be displayed on the main page

Install

In this step you are going to install Kodi and install your first theme. I like to use Aeon Nox as it excellent on a 3m projector screen.

1) Download and Install Kodi
2) Run Kodi
3) Goto System -> Settings -> Add-ons-> Install from repository ->Skin
4) Select Aeon Nox -> Install & wait for it to download
5) When asked, switch to the new skin and keep the changes
6) Hit “backspace” till you get back to the main window

 

Import Movies (all of them)

In this step you will import all your movies. We’ll create the sub-libraries later.

This steps assumes your movies have all the meta data stored in the same folders. Do do this you will need to use Ember media manager.

1) Goto Video -> Files -> Add videos
2) Select Browse and add the movie folders (repeat this step for all movie folders you have, eg on multiple HDDs, we’ll filter later)
3) Select “this directory contains: Movies
4) Do not scrape from the movie database and select “Local information only”. (We will use Ember Media manager to scrap)
5) Movies are in separate folders
6) Scan recursively
7) Click Ok
8) Refresh all items in path

Import TV Shows (all of them)

1) Goto Video -> Files -> Add videos
2) Select Browse and add the movie folders (repeat this step for all movie folders you have, eg on multiple HDDs)
3) This directory contains: TV Shows
4) Do not scrape from the movie database and select “Local information only”. (We will use Ember Media manager to scrap)
5) Click Ok
6) Refresh all items in path

 

Create a sub-libraries

(http://forum.kodi.tv/showthread.php?tid=150934)

Add a play list (for Bollywood Movies)

1) Goto Video -> Playlists -> New smart playlist
2) Type = Movies
3) Name of play List = Bollywood Movies
4) Add new rule Where (path) contains “Bollywood Movies” – not case sensitive
5) Order by “Sort title”

Repeat this for the following playlists

Hollywood Movies

Bollywood Blu Ray

Hollywood Blu Ray

3D Movies

 

External Media Player

I prefer to use MPC-HC & VLC rather than the built in media player. This is how you configure it.

Also I setup a rule which sends the “rar” file to MPC-HC to be played rather than decompressed.

(http://wiki.xbmc.org/?title=External_players)\

1) In C:\Users\<username>\AppData\Roaming\XBMC\userdata
2) Ccreate playercorefactory.xml (or edit if one exists)
3) Add the following XML statements

<playercorefactory>
 <players>
   <player name="MPC-HC" type="ExternalPlayer" audio="false" video="true">
     <filename>C:\Program Files (x86)\MPC-HC\mpc-hc.exe</filename>
     <args>"{1}" /fullscreen /close</args>
     <hidexbmc>false</hidexbmc>
     <hideconsole>false</hideconsole>
     <warpcursor>none</warpcursor>
   </player>

   <player name="VLC" type="ExternalPlayer" audio="false" video="true">
     <filename>C:\Program Files (x86)\VideoLAN\VLC\vlc.exe</filename>
     <args>"{1}" --fullscreen</args>
     <hidexbmc>false</hidexbmc>
     <hideconsole>false</hideconsole>
     <warpcursor>none</warpcursor>
   </player>
 </players>
 
<rules action="prepend">
 <rule filename=".*rar" player="MPC-HC"/>
 <rule video="true" player="MPC-HC"/>
</rules>
</playercorefactory>

 

Turn off some defaults in the Aeon Nox Skin

1) System -> Appearance -> Skin -> Show RSS news feeds (Turn Off)
2) System -> Appearance -> Skin -> settings -> Home window -> position = low (I used to like this but now I prefer to leave it in the center)

 

Setup the Aeon Nox menus for Playlists

1) System -> Appearance -> Skin -> Settings -> Home window -> Setup Aeox Nox main menu

In this window do the following disable all unused items (leave video / system for future): Pictures / Music / Live TV / Movies / Favorites / Concerts

Now we will create our own Custom Movies menu item and point it to a playlist created above:

1) select Custom 1 -> Change name to Bollywood
2) Default select action -> Video Library -> “Playlist >” -> Display it
3) Set item background -> Video Library -> “Playlist >” -> same playlist as in previous step

NOTE: you need to scroll down the list as there are two menu items which are called playlist. You want the second menu item, which as an expansion.

You can now add two sub menus to this Custom1 -> Manage submenu and then proceed to add two sub menus each which point to a play list. To do this click

a) Change Action -> Video Library -> “Playlist >” -> Display it”
b) Set label -> type in the menu item name

For each movie menu item set it as an “infoWall display” by selecting it on the menu on the left hand side of the screen.

For the TV Shows set it to “logo” which look pretty nice.

 

Setup an Aeon Nox menus as a File browser (of sorts)

Add a menu item (or sub menu item) with a custom action:

– for local folders
ActivateWindow(10006,”C:\Media\Kids Movies\”,return)
ActivateWindow(10006,”C:\Media”,return)
ActivateWindow(10006,”E:\Movies”,return)

– for network folders
ActivateWindow(10006,”smb://xxx”,return)

NOTE: This cannot span multiple HDDs, you will need to create a new menu item for each.

http://wiki.xbmc.org/index.php?title=List_of_built-in_functions
http://wiki.xbmc.org/index.php?title=Window_IDs

 

Add a program launcher

Like the previous menu, add a custom action:

Start firefox and open netflix: System.Exec(C:\Progra~2\Mozill~1\Firefox.exe http://www.netflix.com)

 

(not necessary) Add a program launcher (eg Firefox / Internet Explorer / Calibre) – Does not work any more

(http://forum.xbmc.org/showthread.php?tid=85724)
Angelscry’s Repository 1.2.2
Tutorial: http://wiki.xbmc.org/index.php?title=Dharma_Guide/Extras/Advanced_Launcher

1) Obtain the repository installation zip file from above
2) In order to install the Repository go to your system -> addons -> install from zip file
Choose this option and in the dialog that appears and navigate to the repository zip file.
3) Afterwards click on the Button “Get Addons” and choose the newly installed repository
4) Then select program Addons -> Advanced Launcher -> Install

to configure

1) system -> addons -> enabled addons -> program addons -> Advanced Laucher -> configure

Adding a Launcher

1) cick on Apps -> Advanced Launcher
2) click default to create a new “standalone launcher”

Select the “Standalone (normal PC executable)” option
Browse and select the executable file of the application you want to start
In the next window you can pass command-line arguments. If the application you want to run does not need any arguments or does not support them you can leave this field blank. Otherwise just fill in the argument you have to pass.
This title will be used when viewing the application in Advanced Launcher.
Choose the game platform. This indicates the platform of your game-system for the image-/data-scrapers. If you do not add a game but an application, this option does not matter.

If you did not configure Advanced Launcher to use default fanart- and thumbnail-folders you have to do these steps too, otherwise you’re through at this point:

Select the thumbnail path. This is the folder where the thumbnail image of the launcher will be downloaded to. If there is already an image (jpeg, gif, png or bmp format) with the same name as the executable file (can include the _thumb suffix),, this image will be automatically used for the launcher.
Select the fanart path. This is the folder where the fanart image of the launcher will be downloaded to. If there is already an image (jpeg, gif, png or bmp format) with the same name as the executable (can include the _fanart suffix), this image will be automatically used for the launcher.

After adding all the programs, add them to the favouries
Then add the favs to custom menu items

OR

The more easy way the found the right XBMC command line to start a launcher (or an item) of Advanced Launcher directly from XBMC is to add it as an XBMC favourite. For this, highlight a launcher (or an item) and go into its context menu (“C” key) then select Add to Favourites option. Then edit your /xbmx/userdata/favourites.xml file to discover the right command to use.

Item and stand alone launcher command will be like this :

PlayMedia(“plugin://plugin.program.advanced.launcher/?fd4007c4866c0c7f5cc0f9e1037ae85c/29fa6fdd4d8bea7ea949bd6da66a040e”)

Files launcher command will be like this :

ActivateWindow(10001,”plugin://plugin.program.advanced.launcher/?fd4007c4866c0c7f5cc0f9e1037ae85c”)

So, in your case, the code to start your Hyperspin application will surely be :

PlayMedia(“plugin://plugin.program.advanced.launcher/?ab55c91a6001fbff5fafcc70d56cd958”)

 

 

(not necessary) Add random script items

Install zip from https://github.com/XBMC-Addons/script.randomandlastitems (https://github.com/XBMC-Addons/script.randomandlastitems/archive/master.zip)

Follow this for random backgrounds
http://twigstechtips.blogspot.com.au/2013/03/xbmc-how-to-pick-random-background-for.html

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s