16 December, 2007

MP TV series

One of my favorite features in mediaportal is the tv-series support. Enjoying the tv-series you like, all you want, when you want, is absolutely great. But MediaPortal just adds a little user's joy to the excercise. The developers found out that somewhere on the internet, there's a community of tv enthusiasts collecting heaps of banners, episode guides and what not for every imaginable tv series. The community can be found at http://www.thetvdb.com/ and there is some beautiful stuff from dedicated fans out there. All of which is now neatly displayed through the MediaPortal TV Series plugin. The banners, episode guides and screenshots make picking the right episode a breeze. And MediaPortal remembers what episode you watched. It even hides episode guides of unwatched episode to prevent "spoilers".


Now, under MediaPortal 0.2.3 RC 3 there were some issues with the database and I never took the time to fix that, so I reinstalled the plugin when I had the final 0.2.3 release installed.

I downloaded the plugin v1.2.9 build 34660. It comes as a RAR and requires unzipping in the MediaPortal program folder. In the MediaPortal configuration tool an icon appears under plugins. After enabling the plugin, you can enter its configuration.

First you enter the location of the tv-series files. But then comes the tricky part. The filenames have to be parsed into the data base according to parsing rules. These rules extract properties like series and episode number from the filenames on the hard disk. This requires some level of organization in the tv series on your hard disk. The pre-programmed parsing rules work on most naming conventions, but not all on my harddisk. So, the choice was to do a lot of renaming, or edit the parsing rules.

The parsing rules come in two shapes: simple and regular expression. The simple expression proved too simple for my chaoticly named series collection. I basically had to make a rule for each series and each season and there were too many expressions to uniquely parse the filenames. So, I had to get familiar with regular expressions.

The overview and the tester on regexlib.com proved very helpful here, as well as wikipedia and this page. Eventually I found out that this parsing rule works best for me:


Apart from the parsing rule I also used string replacements, so that the characters _, [ and ] are removed from the filenames. When the parsing test shows your files are parsed correctly, it's time to hit "Start Import". The actual downloads may take a while. In the details tab you can check the data that's currently in the database. After closing the configuration and starting MediaPortal, the same data will be displayed through the My TV Series screen.

One more screenshot below to prove my point: The MP TV Series plugin looks neat!

1 comment:

John said...

Great post. I'm toying with MP TV Series, and it seems like a great little plug-in. I'm having some difficulties, but overall it's really good.
One suggestion for your post is to embed your images so that they can be viewed in a separate browser. Your post was really helpful, but the images are too small and blurry so I can't make out the text in them. :)