Add Shows to Kodi Genesis from any HTPC in the House

How to configure Kodi Genesis on remote computers so that you can add TV Shows or Movies to your library and have it add to your central MySQL library.

Okay, so if you’re reading this, you most likely have already installed the Genesis add-on in Kodi, you hopefully discovered that you can merge Genesis TV Shows and Movies into you video library, and you probably even setup your video library on MySQL to sync your Genesis library across multiple HTPCs in your home.

So what’s next?  How can it get any more awesome?

This tutorial will show you how to configure Kodi Genesis on remote computers so that you can add TV Shows or Movies to your library from remote computers and have it add to your central MySQL library.

A Little Background & Behind the Scenes

So, when you right-click (or press C) on a TV Show in the Genesis add-on and select “Add to Library” (as covered before), what it actually does is add files in a certain directory that appear as media files, but are actually pointers to open that corresponding media in the Genesis plugin.

Note: If you don’t have the Genesis plugin and you try to play that media, Kodi will prompt you to install Genesis.

That “certain folder” where those pointer files are stored defaults to …./userdata/addon_data/plugin.video.genesis/TVShows (Learn about the path to the /userdata/ folder)

So, if you are on a remote HTPC which is accessing the library of another HTPC using MySQL (as covered before), then this default path will prevent you from adding a new TV Show to your shared library because Genesis will put it in a path that is local to that computer and it not included in any library sources.

But did you know you can change the path where Genesis stores those library files?  You can, and you can use SMB (Windows Network) paths.

Let’s Do It!

Open the Genesis Video Add-on and go to Tools > GENESIS: Library > LIBRARY: Settings.

You will see a path for Movies and a path for TV.  Both will be defaulting to “special://userdata/…” which is Kodi’s shortcut to the userdata folder.

What we need to do now is change those paths to make them point to the userdata folder of the central computer.

In order to do this, you will need to have shared either your C drive, Windows user folder, or just the Kodi userdata folder from Windows to make the folder accessible from other computers on the network using SMB.

If that’s done, then click on the TV path and browse via SMB to your central HTPC to the path that ends with …./userdata/addon_data/plugin.video.genesis/TVShows as shown in the example below.

Then do the same for Movies

That’s it!  Now, you can enjoy content discovery from any HTPC in the house!

Remember, you will need to do this on each HTPC running Kodi that you add to your network.

If you have any questions, suggestions, or tips, please leave a comment.  Thanks!

15 thoughts on “Add Shows to Kodi Genesis from any HTPC in the House

  1. thanks for your various tutorials covering kodi I have followed a few and found them most helpful! A couple of questions in regards to one;

    in an ideal world i would like to acheive the end goal of sharing my genesis library between all my devices but if my devices like my phone arent all on the same network this wont work. how would you acheive the same goal of sharing library no matter which network i happen to be on at the time? be it work wifi, mobile data or a friends wifi?

    1. Steve, I’ve tried and tried to figure out how to do this, because it seems like it should be possible by opening up port forwarding on port 45 for samba (but being careful about it due to security concerns), but I think my ISP along with most others block port 45 (due to the same security concerns). I think if you setup IIS on your HTPC that hosts your videos, you should be able to setup a webdav server that could accomplish it, but I haven’t gotten that far yet. Let me know if you figure it out. I would love to hear about how you did it.

    2. use a vpn that runs u thru ur home network i think himatchi would do it for u. but basically u need to setup up a tunnel back to your home network and map it to your mobile device. if ur less concerned with security setup up and ftp server and just mount that using external ip. dont forget to forward ftp ports.

  2. Thank you for the post. I’ve been looking to do this for some time now. I recently did a similar setup for my steam game location, by installing it, and its games on my Home Server. This leads me to my main question.

    In the tutorial above, the database location is assumed to be on the ‘main’ HTPC, which would need to be running constantly in order for other computes to access its database. Is there a way to point the HTPCs to a designated server, without installing Kodi on it?

    Essentially, utilize an always up, and shared, folder on the home server, including hosting the database there, that all HTPCs can utilize, and therefore sync with.

    I am running a Windows 2012 Home Server, which has the MySQL service enabled, and has a shared folder with user restrictions, which I am hoping to utilize. I am hesitant to move forward with the above tutorial, due to the concerns of these potential limitations. I’ve gone ahead and done the earlier tutorial for adding Genesis to my Library (indeed, brillant), and would like to move forward.

    Any thoughts?

    Thanks,
    Ender

      1. Thanks for getting back to me.

        I went ahead and did all of this the other day, and synced two Kodi installations. It seems to have worked reasonably well. I used a Database on the Server, and utilized it in both Kodi advancedsettings.xml. I also made a shared folder on the server, and pointed the Genesis library folders to it, for both Kodi installations.

        So far, the only glitch that I have run into, is that if I add in physical files to my media library, in which Genesis already has a reference to, it creates a duplicate reference in the database. Removing the reference from the shared Genesis library folder, and then cleaning the library, doesn’t update the Database, and therefore leaves duplicates in each Kodi installation.

        The only way that I have found to fix this, is to manually delete each duplicate, or delete the database and have Kodi rebuild it.

        Any thoughts?

        1. I’ve had this issue as well. When I have the same episode available from multiple sources, it creates duplicates, one for each source. I would love to her any solution someone can find which merges duplicates and then maybe opens a dialog to let you select the source.

          1. I had another issue last night. My HTPC came out of sleep mode, and when Kodi came up (had stayed open from prior sleep mode), there was no connection to the database/library. Even after I added back in the sources, it wouldn’t find my media. I closed Kodi and restarted, which then forced a refresh. I’m hoping that it is just a one time glitch… No biggie either way; just annoying.

            As for duplicates. If I continue with this database structure, and end up super annoyed by all of duplicates, I’m sure that I’ll end up writing a shell script to run to clean duplicates. Still an extra step which I would like to see eliminated, but will be better than doing it manually. I should look into writing a plugin directly for Kodi, but that would take a lot of time and effort…

          2. I’ve never had issues with database connection reestablishing after resuming from sleep. That sounds like fluke to me.

            Also,about your issue with the Mac, I believe images are not stored in the library. Instead, each individual computer scrapes its own meta data and images.

          3. Hmmm. I keep the meta data files – images included – in the same folder as the media files. I use an external scraper, outside of Kodi.

            Either way, the Mac wasn’t able to find the actual media file either, and play it. I’ve had it hooked up to the server before, but without using the MySql database.

          4. Additionally (to the response below this), the library fails when utilized via a MAC. It seems the database and reads in some of the meta data, but fails to load most images, and the actual files – both from my physical server, and from the Genesis streams.

Leave a Reply

Your email address will not be published. Required fields are marked *