A few weeks ago I wrote a post about how to use EventGhost to begin to automate your PC. Now we are going to take things a step forward and use EventGhost alongside a few other free programs to set up an amazing and fully automated Home Theatre PC.
If you have not read my previous EventGhost article I advise you go and read it now as I am going to skip past the basics here.
Step One: Getting all the applications
To truly get this working properly you are going to need a few programs, they are all free and fairly straightforward to use (but Iâm going to show you how anyway), so get to work on the list below and let me know when you have it all downloaded and installed.
- XBMC â The excellent free to use media centre application
- Torrent Episode Downloader â This does a similar thing to uTorrentâs RSS downloader but I personally feel it does a better job and is easier to use.
- uTorrent â You can actually use any torrent application provided it has the ability to move files to a separate location when finished.
- EventGhost â Of course you already have this as you have hopefully gone through the previous tutorial.
- The Renamer â A superb and easily automated tool for finding and renaming your TV shows, it can also be made to work with movies but there is a better tool for that.
- Ember Media Manager â Automatically finds and download information for your movies.
Step Two:Â Getting ready for XBMC
The biggest difficulty a lot of people seem to face when they first set XBMC up is getting the library mode to work; this is because XBMC needs to have a specific file structure in order to scrape (download information about) your media files.
Note: Iâm going to work on the assumption that you have a hard drive set up just for your media, if you do not then create a folder on one of your drives and do all this in the root of that folder.
Firstly create the following folders:
TV Shows, Music, Photos, Movies, Unsorted Media
There are some things that XBMC does not scrape all that well or simply things you would like to be able to access in XBMC but donât really want it to be categorised as a TV show or movie, in this instance you should also create a folder for that (E.g., Documentaries, Childrenâs TV shows, etc...)
Prepare your movies
The Movies folder should not directly contain any files; each movie should be in a folder which has the movies name and year as its title. The movie file itself should be the movieâs title, if it is a HD movie then you can also add that information to the file name:
E.g. /Movies/The Shawshank Redemption [1994]/The.Shawshank.Redemption.720p.BluRay.mkv
Setting up your TV Shows folder
The TV Shows folder follows a similar format, each show should have a folder with its name and year as the title and each series of a show should go inside a âseries xâ folder. The name of each file should be the name of the show followed by the series number and episode number, if you wish you can also add the title of the episode:
E.g. /TV Shows/Life on Mars [2008]/Series 1/Life on Mars â s01e01 â The Crash.avi
Make sure you format the series and episode numbers using the above example, this method always works for the main scrapers. The year is not essential for movies or TV shows, it just makes it simpler for the scraper to make sure its downloading the information for the correct title.
Setting up your music folder
The music folder should contain a folder for the artist and then a folder for each album inside it.:
E.g. /Music/Fleetwood Mac/Rumours/
The year should not be needed for albums as itâs rare that an artist will use the same album name more than once.
Setting up the other folders
Photos are simple to categorise as they do not get scraped therefore you can put any pictures you like in there without worrying about file structure.
The unsorted media folder should be empty.
Copying your media
At this stage you are ready to copy your media to the folders. If you have thumbnail or fanart files already you donât need to copy them over (unless you know the scraper will have trouble finding them) as this will be taken care of later.
Step Three: Using Ember Media Manager to pre-scrape your movies
XBMC has a great scraping tool; however it is quite slow and if you re-install your media centre for any reason you will have to re-scrape all your files again from scratch. Ember Media Manager is faster and even better, it downloads all the needed files to the movies folder, so if you do need to reinstall no re-scrape is required (plus it downloads trailers â which is just awesome).
To set it up, go to âedit > settingsâ, click âFiles and Sourcesâ then âadd sourceâ and browse to the root of your movies folder. (This can be done during setup as well so you may not need to do it now). I wonât tell you which boxes need ticking as it is all about personal preference really.
Once thatâs done, return to the main menu click âupdate libraryâ (although I think this happens automatically the first time anyway). Once your list appears select âScrape Media > New Movies > Automatic > All itemsâ and watch it find everything for you (Note: If you did not add the year to the folder names then you may get odd results on some movies using âautomaticâ, use âaskâ instead).
If you use the âautomaticâ mode then this should be the last time you ever see this screen as we will automate it in a later step.
Step 4: Using Torrent Episode Downloader (TED) to find and download your TV shows.
Before we start this please make sure you have your torrent program set up to send all completed downloads to your âunsorted mediaâ folder. (Note: You can use your existing downloads folder if you wish, just make sure that its only updated when the download has completed)
TED is a simple Java application which automatically finds your favourite TV shows and starts downloading them. Itâs fairly simple to set up but here is a little tutorial anyway.
Once the program is installed, click on âadd showâ. You will then be presented with the 'Add show' window. Simply select the show you want to download, choose the episode you want to download from (this doesnât work that well for older episodes). Â Once this is done, select the episode and click âEdit showâ.
The default settings are ok for the most part, however I find that I get better results if I make a few tweaks. Firstly in âFeedsâ click on â+â and add IsoHunt, select âyesâ when the dialog box pops up and then click on âfiltersâ, change the top number to 300mb and the maximum size to 1200mb (this means you wonât get low quality files and you might get the odd HD one (if you donât want HD then set the max to about 750mb). Donât bother with âdownload in HD qualityâ as itâs not perfect and usually results in no torrents being found for a lot of shows.
Once you have done that just rinse and repeat until youâve added all the shows you want.
Note: If you do not want TED to automatically open your torrent application (like if you download on a schedule) then you can change the options in Extra > Preferences.
Step 5: Use The Renamer to automatically sort and move your TV shows.
Sadly many files on BitTorrent have not been named with media centres in mind and most scrapers are rubbish unless the file names and folders follow their rules. Thankfully a fantastic application called âThe Renamerâ exists to solve this problem.
This program is very easy to set up and even easier to use, firstly, click on âsettingsâ then change your fetch folder to your âunsorted mediaâ folder and the TV shows archive to your âTV Showsâ folder.
Make sure the following boxes are ticked
- s1e01
- add â0â for Season (only the first time it appears)
- include sub folders
- Auto move after renaming,
- Showname
- Season
- Episode titles
- To TV Show Folder
- To Season folder
And thatâs it!
Step 6 â Tie it all together with EventGhost
Ok so far weâve managed to get a series of systems together to download and catalogue our TV Shows and organise our movies to be imported into XBMC. Now itâs time to make it automatic using EventGhost.
Firstly we need to install two plugins to EventGhost. Directory Watcher
and XBMC
, you can find these in the âPluginsâ menu. To ensure that your movies are scraped automatically as well, install two copies of Directory Watcher
Set the first Directory Watcher Plugin to look in your âunsorted mediaâ folder and the second to look in your 'Movies' folder. Then create a new macro called âmove new showsâ
Inside this macro set it to automatically launch the renamer (System > Start Application
), in the command line box type ââfetchâ and set the window options to âminimisedâ (this never seems to work for me but you may have more luck. Then â still inside the same macro - add another action below it, âUpdate Video Libraryâ from the XBMC folder.
Now create a new macro called âscrape new moviesâ, set it to open ember media manager and in the command line box enter âânewauto  âallâ (remember this is only foolproof if you add years to your movie directories). Then â still inside the same macro - add another action below it, âUpdate Video Libraryâ from the XBMC folder.
Finally add an event called DirectoryWatcher.Updated
to the top of the first macro and one called âDirectoryWatcher2.Updatedâ to the top of the second and save your configuration.
The last step to make sure everything is automated is to create shortcuts to uTorrent and TED in your Windows start-up folder.
Final Step â Set up XBMC
Note: This step assumes you are using at least version 9.11 of XBMC and are using the default skin
Firstly letâs add our media files. Go to âvideoâs and select Add Source, browse to your âMoviesâ folder and press enter, the source should automatically be called âmoviesâ.
Then click on âSet contentâ, under âThis directory containsâ, select âmoviesâ and set the scraper to the one of your choosing (the default themoviedb.org is pretty good as it is), under scanning options only select âuse folder names for lookupsâ Under âsettingsâ you are presented with a number of options, these are completely up to you, for the most part Ember Media Manager will have taken care of them anyway.
Once this is done, do the same things again for TV shows, obviously this time select âTV showsâ instead of âMoviesâ. I recommend thetvdb.org as your scraper. Donât tick any of the boxes and once again the options in the âsettingsâ panel are up to you (although I find âuse DVDâ order to be more chronological than the âAbsolute orderâ setting).
Note: If you created directories for video media you do not want to be catalogued, add them in the same way but under 'this directory contains' set it to 'none'.
Adding sources to the music and pictures menus is a similar procedure however you do not need to specify any settings.
Now we need to tweak some settings to make sure everything works ok, so from the home screen go to 'System', in the system menu select âVideoâ and check all the options under âLibraryâ then do exactly the same for 'Music'. Then go back to the main âSystemâ page and select âSkinâ under the âhome window optionsâ menu, the top four options should be checked and the rest are optional, just make sure to deselect the âhide moviesâ and âhide tv showâ options.
Once this is done, restart XBMC it and watch all your media pour in. Your TV shows will now automatically download as soon as they are released and they will be automatically catalogued and added to your media centre. All downloaded movies will remain in your 'Unsorted Media' Folder but as soon as you move them to 'Movies' they will be found and catalogued by Ember and XBMC, You can use the ârecentlyâ added box on XBMC to see what new media you have to watch.
CAVEATS
You knew that nothing this amazing was going to come without problems didnât you. The main issue this method has is that its terrible for seeding torrents. So far the only foolproof method around this I have found is that instead of setting your torrent program to move downloaded torrents to the âunsorted mediaâ folder, its better to copy them there instead, that way you can keep your ratios up without having to wait for the torrent to reach 1:1 before watching your media. Obviously this removes some of the automation and you have copies of files on your hard drive until you delete the seeded copy so its not perfect.
The other issue is that whilst TED is brilliant, its not without its flaws, sometimes it cannot find some episodes for shows, so far the only way around this is to tell TED to skip to the next episode and download it manually, fiddling with the filters can sometimes work but often its a problem with the program and youâll have to wait for an update to fix it.
If you have any questions, please leave them in the comments.